Skip to content

Commit 9a23ed5

Browse files
dTenebraemartinkpetersen
authored andcommitted
scsi: isci: Return result of sas_register_ha()
To properly manage possible failure of sas_register_ha() in isci_register_sas_ha(), return its result instead of zero Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru> Link: https://lore.kernel.org/r/20230813202336.240874-1-artem.chernyshev@red-soft.ru Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent bfaa4a0 commit 9a23ed5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/scsi/isci/init.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,7 @@ static int isci_register_sas_ha(struct isci_host *isci_host)
264264

265265
sas_ha->strict_wide_ports = 1;
266266

267-
sas_register_ha(sas_ha);
268-
269-
return 0;
267+
return sas_register_ha(sas_ha);
270268
}
271269

272270
static void isci_unregister(struct isci_host *isci_host)

0 commit comments

Comments
 (0)