Commit 1f4f1084 authored by Dan Carpenter's avatar Dan Carpenter Committed by David Teigland

dlm: uninitialized variable on error in dlm_listen_for_all()

The "sock" variable is not initialized on this error path.

Cc: stable@vger.kernel.org
Fixes: 2dc6b115 ("fs: dlm: introduce generic listen")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 31231092
...@@ -1789,7 +1789,7 @@ static int dlm_listen_for_all(void) ...@@ -1789,7 +1789,7 @@ static int dlm_listen_for_all(void)
SOCK_STREAM, dlm_proto_ops->proto, &sock); SOCK_STREAM, dlm_proto_ops->proto, &sock);
if (result < 0) { if (result < 0) {
log_print("Can't create comms socket: %d", result); log_print("Can't create comms socket: %d", result);
goto out; return result;
} }
sock_set_mark(sock->sk, dlm_config.ci_mark); sock_set_mark(sock->sk, dlm_config.ci_mark);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment