scsi: ibmvfc: Fix error return in ibmvfc_probe()
Subsystems (3)
PATCH 1/1 scsi: ibmvfc: Fix error return in ibmvfc_probe()
Fix to return error code PTR_ERR() from the error handling case instead of 0.
Signed-off-by Jing Xiangfeng <[email protected]>
--- drivers/scsi/ibmvscsi/ibmvfc.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/ibmvscsi/ibmvfc.c +1 -0
@@ -4928,6 +4928,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; }
Signature · 1 line
2.17.1
Quoted 4 lines · Jing Xiangfeng
Fix to return error code
PTR_ERR()from the error handling case instead of 0.Signed-off-by Jing Xiangfeng <[email protected]>
Acked-by Tyrel Datwyler <[email protected]>
Quoted 17 lines
--- drivers/scsi/ibmvscsi/ibmvfc.c | 1 + 1 file changed, 1 insertion(+)drivers/scsi/ibmvscsi/ibmvfc.c +1
-0@@ -4928,6 +4928,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; }
Martin K. Petersen
AppliedJing,
Quoted 2 lines
Fix to return error code
PTR_ERR()from the error handling case instead of 0.
Applied to 5.10/scsi-staging. Thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 2 lines · Jing Xiangfeng
Fix to return error code
PTR_ERR()from the error handling case instead of 0.
Applied to 5.10/scsi-queue, thanks!
[1/1] scsi: ibmvfc: Fix error return in ibmvfc_probe()
https://git.kernel.org/mkp/scsi/c/5e48a084f4e8
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering