diff options
author | Jing Xiangfeng <jingxiangfeng@huawei.com> | 2020-09-07 16:39:49 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-29 09:03:10 +0100 |
commit | e2f267aef7776c4e0024bfe578acb68587c18c51 (patch) | |
tree | f096088af25c02a8e4cbda8038dc797558e02483 /drivers/scsi/ibmvscsi/ibmvfc.c | |
parent | d1a172f3d4c7e6168cad1af6973adb165b46a0ab (diff) | |
download | linux-stable-e2f267aef7776c4e0024bfe578acb68587c18c51.tar.gz linux-stable-e2f267aef7776c4e0024bfe578acb68587c18c51.tar.bz2 linux-stable-e2f267aef7776c4e0024bfe578acb68587c18c51.zip |
scsi: ibmvfc: Fix error return in ibmvfc_probe()
[ Upstream commit 5e48a084f4e824e1b624d3fd7ddcf53d2ba69e53 ]
Fix to return error code PTR_ERR() from the error handling case instead of
0.
Link: https://lore.kernel.org/r/20200907083949.154251-1-jingxiangfeng@huawei.com
Acked-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/scsi/ibmvscsi/ibmvfc.c')
-rw-r--r-- | drivers/scsi/ibmvscsi/ibmvfc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c index 0526a47e30a3..db80ab8335df 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.c +++ b/drivers/scsi/ibmvscsi/ibmvfc.c @@ -4790,6 +4790,7 @@ static int ibmvfc_probe(struct vio_dev *vdev, const struct vio_device_id *id) if (IS_ERR(vhost->work_thread)) { dev_err(dev, "Couldn't create kernel thread: %ld\n", PTR_ERR(vhost->work_thread)); + rc = PTR_ERR(vhost->work_thread); goto free_host_mem; } |