]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: elx: efct: Fix error handling in efct_hw_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 17 Jun 2021 02:48:37 +0000 (02:48 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 19 Jun 2021 03:01:03 +0000 (23:01 -0400)
commit41962aba2dc622b456aaf3c20e1089084714f73f
tree7febf0061bb240b5f6b4fbfa834921729b57deef
parent61bf3fdb5dd0e6980a6b514a924ea1da75e2a946
scsi: elx: efct: Fix error handling in efct_hw_init()

Fix to return negative error code -ENOMEM from the error handling case
instead of 0. Also fix typo in error message.

Link: https://lore.kernel.org/r/20210617024837.1023069-1-weiyongjun1@huawei.com
Fixes: 4df84e846624 ("scsi: elx: efct: Driver initialization routines")
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/elx/efct/efct_hw.c