]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
scsi: qedf: Fix error return code in __qedf_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 17 Jan 2018 12:42:41 +0000 (12:42 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 23 Jan 2018 01:03:56 +0000 (20:03 -0500)
commite89cabf26e1cdd5c612b6c21547b3e79b4ac1038
tree99d14fa16edf8991348f71ebf21348c7cd2e52ab
parent3f884a0a8bdf28cfd1e9987d54d83350096cdd46
scsi: qedf: Fix error return code in __qedf_probe()

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

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_main.c