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: 2dc6b1158c
("fs: dlm: introduce generic listen")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
parent
3123109284
commit
1f4f10845e
|
@ -1789,7 +1789,7 @@ static int dlm_listen_for_all(void)
|
|||
SOCK_STREAM, dlm_proto_ops->proto, &sock);
|
||||
if (result < 0) {
|
||||
log_print("Can't create comms socket: %d", result);
|
||||
goto out;
|
||||
return result;
|
||||
}
|
||||
|
||||
sock_set_mark(sock->sk, dlm_config.ci_mark);
|
||||
|
|
Loading…
Reference in New Issue