diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-09-05 14:58:36 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-09-10 03:25:02 +0200 |
commit | 244359c99fd90f1c61c3944f93250f8219435c75 (patch) | |
tree | c25abb948705b955cee69ac8770353062c39eeb1 /drivers/scsi/scsi_debug.c | |
parent | scsi: mpt3sas: Don't call disable_irq from IRQ poll handler (diff) | |
download | linux-244359c99fd90f1c61c3944f93250f8219435c75.tar.xz linux-244359c99fd90f1c61c3944f93250f8219435c75.zip |
scsi: libsas: Fix error path in sas_notify_lldd_dev_found()
In sas_notify_lldd_dev_found(), if we can't allocate the necessary
resources, then it seems like the wrong thing to mark the device as found
and to increment the reference count. None of the callers ever drop the
reference in that situation.
[mkp: tweaked commit desc based on feedback from John]
Link: https://lore.kernel.org/r/20200905125836.GF183976@mwanda
Fixes: 735f7d2fedf5 ("[SCSI] libsas: fix domain_device leak")
Reviewed-by: Jason Yan <yanaijie@huawei.com>
Acked-by: John Garry <john.garry@huawei.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
0 files changed, 0 insertions, 0 deletions