diff options
| author | Chaitanya Kulkarni <[email protected]> | 2020-10-06 23:36:47 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2020-10-07 05:55:40 +0000 |
| commit | 4bab69093044ca81f394bd0780be1b71c5a4d308 (patch) | |
| tree | 890428417257ef8a9107a860c2a8af5c8d6c7982 /net/unix/af_unix.c | |
| parent | block/scsi-ioctl: Fix kernel-infoleak in scsi_put_cdrom_generic_arg() (diff) | |
| download | kernel-4bab69093044ca81f394bd0780be1b71c5a4d308.tar.gz kernel-4bab69093044ca81f394bd0780be1b71c5a4d308.zip | |
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 <[email protected]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
