VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Yang Yingliang <yangyingliang@huawei.com> 2021-03-27 16:37:04 +0800 committer: David Teigland <teigland@redhat.com> 2021-03-29 13:28:18 -0500 commit: 2fd8db2dd05d895961c7c7b9fa02d72f385560e4 parent: 9d232469bcd772dbedb9e75a165c681b920524ee
Commit Summary:
fs: dlm: fix missing unlock on error in accept_from_sock()
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 73cc1809050a..166e36fcf3e4 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -931,6 +931,7 @@ static int accept_from_sock(struct listen_connection *con)
 			result = dlm_con_init(othercon, nodeid);
 			if (result < 0) {
 				kfree(othercon);
+				mutex_unlock(&newcon->sock_mutex);
 				goto accept_err;
 			}