diff options
| author | Junxiao Bi <junxiao.bi@oracle.com> | 2026-03-04 08:46:03 -0800 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2026-03-07 10:55:31 -0500 |
| commit | 4ce7ada40c008fa21b7e52ab9d04e8746e2e9325 (patch) | |
| tree | c80c31cfec37655623309193aefb729f2e3c03a6 /Documentation/console/git@git.tavy.me:linux.git | |
| parent | 14d4ac19d1895397532eec407433c5d74d9da53b (diff) | |
scsi: core: Fix error handling for scsi_alloc_sdev()
After scsi_sysfs_device_initialize() was called, error paths must call
__scsi_remove_device().
Fixes: 1ac22c8eae81 ("scsi: core: Fix refcount leak for tagset_refcnt")
Cc: stable@vger.kernel.org
Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260304164603.51528-1-junxiao.bi@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'Documentation/console/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
