scsi: ibmvscsis: Fix error return code in ibmvscsis_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 15 Sep 2016 03:25:23 +0000 (03:25 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 15 Sep 2016 13:56:21 +0000 (09:56 -0400)
commit38247feb60512a52c4f847933f8f931284dc21f4
tree028aaf0615c7f788852863e927e849571f41bf33
parent8475c8118551f806176b5af4d0e8657a5f015b95
scsi: ibmvscsis: Fix error return code in ibmvscsis_probe()

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

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c