summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-07-29 16:00:45 (GMT)
committerMartin K. Petersen <martin.petersen@oracle.com>2016-08-02 05:19:18 (GMT)
commitc8e18acccb9be6dd1aa4fb8dbc1b98b3b7d6d8e1 (patch)
tree91441ce7f43db893e0dc086ca1d318ebfc92578b
parenta561a8ea837182e2ac2c699e64a33b76f29d1668 (diff)
downloadlinux-c8e18acccb9be6dd1aa4fb8dbc1b98b3b7d6d8e1.tar.xz
ipr: Fix error return code in ipr_probe_ioa()
Fix to return error code -ENOMEM from the workqueue alloc error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Acked-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/ipr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index 95e4834..bf85974 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -10219,6 +10219,7 @@ static int ipr_probe_ioa(struct pci_dev *pdev,
if (!ioa_cfg->reset_work_q) {
dev_err(&pdev->dev, "Couldn't register reset workqueue\n");
+ rc = -ENOMEM;
goto out_free_irq;
}
} else