Commit 2fd8db2d authored by Yang Yingliang's avatar Yang Yingliang Committed by David Teigland
Browse files

fs: dlm: fix missing unlock on error in accept_from_sock()



Add the missing unlock before return from accept_from_sock()
in the error handling case.

Fixes: 6cde210a ("fs: dlm: add helper for init connection")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 9d232469
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
			}