mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
scsi: ibmvfc: Fix error return in ibmvfc_probe()
[ Upstream commit 5e48a084f4 ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
738315384e
commit
9adcc7d4e5
@@ -4795,6 +4795,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user