summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2018-02-26 13:01:37 +0100
committerJens Axboe <axboe@kernel.dk>2018-02-26 09:48:42 -0700
commitd52987b524ccd2e2165ddad9bcc087a6c3f5332c (patch)
tree5eb0cdb9144279195e29ca3db846f95449756dcb /samples
parentd9c10e5b8863cfb6886d1640386455075c6e979d (diff)
downloadop-kernel-dev-d52987b524ccd2e2165ddad9bcc087a6c3f5332c.zip
op-kernel-dev-d52987b524ccd2e2165ddad9bcc087a6c3f5332c.tar.gz
genhd: Fix leaked module reference for NVME devices
Commit 8ddcd653257c "block: introduce GENHD_FL_HIDDEN" added handling of hidden devices to get_gendisk() but forgot to drop module reference which is also acquired by get_disk(). Drop the reference as necessary. Arguably the function naming here is misleading as put_disk() is *not* the counterpart of get_disk() but let's fix that in the follow up commit since that will be more intrusive. Fixes: 8ddcd653257c18a669fcb75ee42c37054908e0d6 CC: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud