diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-04-04 23:06:28 +0300 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-04-06 22:01:44 +0300 |
commit | 1f4f10845e14690b02410de50d9ea9684625a4ae (patch) | |
tree | 517d447dd32c2c00bec5fb11ddb7ae5a4c9d74a6 /fs/dlm | |
parent | 3123109284176b1532874591f7c81f3837bbdc17 (diff) | |
download | linux-1f4f10845e14690b02410de50d9ea9684625a4ae.tar.xz |
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: 2dc6b1158c28 ("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>
Diffstat (limited to 'fs/dlm')
-rw-r--r-- | fs/dlm/lowcomms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index e284d696c1fd..6ed935ad8247 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c @@ -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); |