mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
scsi: core: Fix error handling for scsi_alloc_sdev()
commit4ce7ada40cupstream. After scsi_sysfs_device_initialize() was called, error paths must call __scsi_remove_device(). Fixes:1ac22c8eae("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d24330cf24
commit
9f9157ee67
1 changed files with 2 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue