]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: cxlflash: Fix error return code in cxlflash_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 28 Apr 2020 14:18:55 +0000 (14:18 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 20 May 2020 01:01:32 +0000 (21:01 -0400)
commit1abba90f72c3faa27c175dcfc216e8c0919ed443
treedbcdbb62b06370edce9ce6fc98f882f8f1a51fd9
parentcdb883436feec491b51222e8e84ba70e3a9956dd
scsi: cxlflash: Fix error return code in cxlflash_probe()

Fix to return negative error code -ENOMEM from create_afu error handling
case instead of 0, as done elsewhere in this function.

Link: https://lore.kernel.org/r/20200428141855.88704-1-weiyongjun1@huawei.com
Acked-by: Matthew R. Ochs <mrochs@linux.ibm.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxlflash/main.c