|
@@ -1030,8 +1030,10 @@ static int __init aic94xx_init(void)
|
|
|
|
|
|
aic94xx_transport_template =
|
|
aic94xx_transport_template =
|
|
sas_domain_attach_transport(&aic94xx_transport_functions);
|
|
sas_domain_attach_transport(&aic94xx_transport_functions);
|
|
- if (!aic94xx_transport_template)
|
|
|
|
|
|
+ if (!aic94xx_transport_template) {
|
|
|
|
+ err = -ENOMEM;
|
|
goto out_destroy_caches;
|
|
goto out_destroy_caches;
|
|
|
|
+ }
|
|
|
|
|
|
err = pci_register_driver(&aic94xx_pci_driver);
|
|
err = pci_register_driver(&aic94xx_pci_driver);
|
|
if (err)
|
|
if (err)
|