mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
scsi: aic94xx: fix an error code in aic94xx_init()
We accidentally return success instead of -ENOMEM on this error path.
Fixes: 2908d778ab ("[SCSI] aic94xx: new driver")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: John Garry <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
990528171f
commit
0756c57bce
1 changed files with 3 additions and 1 deletions
|
|
@ -1030,8 +1030,10 @@ static int __init aic94xx_init(void)
|
|||
|
||||
aic94xx_transport_template =
|
||||
sas_domain_attach_transport(&aic94xx_transport_functions);
|
||||
if (!aic94xx_transport_template)
|
||||
if (!aic94xx_transport_template) {
|
||||
err = -ENOMEM;
|
||||
goto out_destroy_caches;
|
||||
}
|
||||
|
||||
err = pci_register_driver(&aic94xx_pci_driver);
|
||||
if (err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue