summaryrefslogtreecommitdiff
path: root/mm/userfaultfd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-11-09 18:30:59 +0100
committerJens Axboe <axboe@kernel.dk>2020-11-10 08:01:28 -0700
commit2bd645b2d3f0bacadaa6037f067538e1cd4e42ef (patch)
treedfe511cec98fc3a2ecb787ac22bb28df57ea8c4e /mm/userfaultfd.c
parentb5214c605fc10c356c4bbb0c7fedef40a85e685c (diff)
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 <hch@lst.de> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/userfaultfd.c')
0 files changed, 0 insertions, 0 deletions