diff options
| author | Christoph Hellwig <[email protected]> | 2020-11-09 17:30:59 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-11-10 15:01:28 +0000 |
| commit | 2bd645b2d3f0bacadaa6037f067538e1cd4e42ef (patch) | |
| tree | dfe511cec98fc3a2ecb787ac22bb28df57ea8c4e /net/switchdev/switchdev.c | |
| parent | Merge tag 'nvme-5.10-2020-11-10' of git://git.infradead.org/nvme into block-5.10 (diff) | |
| download | kernel-2bd645b2d3f0bacadaa6037f067538e1cd4e42ef.tar.gz kernel-2bd645b2d3f0bacadaa6037f067538e1cd4e42ef.zip | |
nbd: fix a block_device refcount leak in nbd_release
bdget_disk needs to be paired with bdput to not leak a reference
on the block device inode.
Fixes: 08ba91ee6e2c ("nbd: Add the nbd NBD_DISCONNECT_ON_CLOSE config flag.")
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
