scsi: aic94xx: fix an error code in aic94xx_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 8 Aug 2018 14:29:09 +0000 (17:29 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 9 Aug 2018 01:17:56 +0000 (21:17 -0400)
commit0756c57bce3d26da2592d834d8910b6887021701
treec7c5a3a9f060141052326cc0b588e2c33936d203
parent990528171f0c31bd0dfe3da7f60b02664abbcf34
scsi: aic94xx: fix an error code in aic94xx_init()

We accidentally return success instead of -ENOMEM on this error path.

Fixes: 2908d778ab3e ("[SCSI] aic94xx: new driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic94xx/aic94xx_init.c