linux/drivers/scsi/libsas
Dan Carpenter 8fe66badf0 scsi: libsas: Fix an error code in sas_ata_add_dev()
This code accidentally returns success instead of -ENOMEM.

Fixes: 7cc7646b4b ("scsi: libsas: Factor out sas_ata_add_dev()")
Link: https://lore.kernel.org/r/Y7asLxzVwQ56G+ya@kili
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-01-11 23:32:53 -05:00
..
Kconfig scsi: libsas: Drop BLK_DEV_BSGLIB selection 2021-07-27 00:06:42 -04:00
Makefile scsi: libsas: Allow libsas to include SCSI header files directly 2021-07-20 23:11:17 -04:00
sas_ata.c scsi: libsas: Fix an error code in sas_ata_add_dev() 2023-01-11 23:32:53 -05:00
sas_discover.c scsi: libsas: Change the coding style of sas_discover_sata() 2022-12-30 16:59:10 +00:00
sas_event.c scsi: libsas: Use bool for queue_work() return code 2022-02-27 21:48:30 -05:00
sas_expander.c scsi: libsas: Factor out sas_ex_add_dev() 2022-12-30 16:59:11 +00:00
sas_host_smp.c scsi: libsas: Allow libsas to include SCSI header files directly 2021-07-20 23:11:17 -04:00
sas_init.c scsi: libsas: Make sas_{alloc, alloc_slow, free}_task() private 2022-10-18 02:37:45 +00:00
sas_internal.h scsi: libsas: Add smp_ata_check_ready_type() 2022-11-26 02:26:02 +00:00
sas_phy.c scsi: libsas: Allow libsas to include SCSI header files directly 2021-07-20 23:11:17 -04:00
sas_port.c scsi: libsas: Clean up sas_form_port() 2022-03-01 23:56:27 -05:00
sas_scsi_host.c ata: libata-sata: Fix device queue depth control 2022-09-28 20:47:31 +09:00
sas_task.c scsi: libsas: Use enum for response frame DATAPRES field 2022-02-19 15:59:34 -05:00