diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-11-21 12:04:50 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-11-21 12:04:50 -0800 |
commit | be5fa3aac23fde1a00547ed87144e1f3268cdb48 (patch) | |
tree | 6fa2297c2ec62b64e386ad644b91826cc3ac737c /drivers/block | |
parent | cec353f6c2c9ff003332a41ed37b55df88dfa9a5 (diff) | |
parent | dff10bbea4be47bdb615b036c834a275b7c68133 (diff) | |
download | linux-be5fa3aac23fde1a00547ed87144e1f3268cdb48.tar.gz linux-be5fa3aac23fde1a00547ed87144e1f3268cdb48.tar.bz2 linux-be5fa3aac23fde1a00547ed87144e1f3268cdb48.zip |
Merge tag 'for-linus-20191121' of git://git.kernel.dk/linux-block
Pull block fix from Jens Axboe:
"Just a single fix for an issue in nbd introduced in this cycle"
* tag 'for-linus-20191121' of git://git.kernel.dk/linux-block:
nbd:fix memory leak in nbd_get_socket()
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/nbd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index a94ee45440b3..19e75999bb15 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -993,6 +993,7 @@ static struct socket *nbd_get_socket(struct nbd_device *nbd, unsigned long fd, if (sock->ops->shutdown == sock_no_shutdown) { dev_err(disk_to_dev(nbd->disk), "Unsupported socket: shutdown callout must be supported.\n"); *err = -EINVAL; + sockfd_put(sock); return NULL; } |