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)
commitd0b1e4a638d670a09f42017a3e567dc846931ba8
treedbcdbb62b06370edce9ce6fc98f882f8f1a51fd9
parentf48b285ae658b50f4ba2d3a267522f572720de6d
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