summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2020-10-06 16:36:47 -0700
committerChristoph Hellwig <hch@lst.de>2020-10-07 07:55:40 +0200
commit4bab69093044ca81f394bd0780be1b71c5a4d308 (patch)
tree890428417257ef8a9107a860c2a8af5c8d6c7982 /drivers/hwmon
parent6d53a9fe5a1983490bc14b3a64d49fabb4ccc651 (diff)
nvme-core: put ctrl ref when module ref get fail
When try_module_get() fails in the nvme_dev_open() it returns without releasing the ctrl reference which was taken earlier. Put the ctrl reference which is taken before calling the try_module_get() in the error return code path. Fixes: 52a3974feb1a "nvme-core: get/put ctrl and transport module in nvme_dev_open/release()" Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions