1
0
Fork 0
alistair23-linux/drivers/scsi/libsas
Dan Carpenter 09aadf4032 scsi: libsas: Fix error path in sas_notify_lldd_dev_found()
[ Upstream commit 244359c99f ]

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: 735f7d2fed ("[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-23 12:40:40 +02:00
..
Kconfig treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 167 2019-05-30 11:26:39 -07:00
Makefile treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 167 2019-05-30 11:26:39 -07:00
sas_ata.c scsi: libsas: Set data_dir as DMA_NONE if libata marks qc as NODATA 2020-09-17 13:47:43 +02:00
sas_discover.c scsi: libsas: Fix error path in sas_notify_lldd_dev_found() 2020-09-23 12:40:40 +02:00
sas_event.c scsi: libsas: switch remaining files to SPDX tags 2019-05-21 06:16:22 -04:00
sas_expander.c SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
sas_host_smp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 372 2019-06-05 17:37:10 +02:00
sas_init.c SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
sas_internal.h SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
sas_phy.c SCSI misc on 20190709 2019-07-11 15:14:01 -07:00
sas_port.c scsi: libsas: aic94xx: hisi_sas: mvsas: pm8001: Use dev_is_expander() 2019-06-20 15:37:02 -04:00
sas_scsi_host.c SCSI fixes on 20190720 2019-07-20 10:04:58 -07:00
sas_task.c scsi: libsas: add a SPDX tag to sas_task.c 2019-05-21 06:16:22 -04:00