diff options
author | Sun Ke <sunke32@huawei.com> | 2019-11-19 09:09:11 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-19 19:23:26 +0300 |
commit | dff10bbea4be47bdb615b036c834a275b7c68133 (patch) | |
tree | 6b8fb7e10bc91eb1a4a828e66eaa52e3039682a4 /arch/arm64/lib/uaccess_flushcache.c | |
parent | dcb77e4b274b8f13ac6482dfb09160cd2fae9a40 (diff) | |
download | linux-dff10bbea4be47bdb615b036c834a275b7c68133.tar.xz |
nbd:fix memory leak in nbd_get_socket()
Before returning NULL, put the sock first.
Cc: stable@vger.kernel.org
Fixes: cf1b2326b734 ("nbd: verify socket is supported during setup")
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Sun Ke <sunke32@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/arm64/lib/uaccess_flushcache.c')
0 files changed, 0 insertions, 0 deletions