diff options
author | Wei Yongjun <weiyj.lk@gmail.com> | 2016-07-29 16:00:45 +0000 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-08-02 01:19:18 -0400 |
commit | c8e18acccb9be6dd1aa4fb8dbc1b98b3b7d6d8e1 (patch) | |
tree | 91441ce7f43db893e0dc086ca1d318ebfc92578b /drivers/scsi/ipr.c | |
parent | a561a8ea837182e2ac2c699e64a33b76f29d1668 (diff) | |
download | linux-c8e18acccb9be6dd1aa4fb8dbc1b98b3b7d6d8e1.tar.gz linux-c8e18acccb9be6dd1aa4fb8dbc1b98b3b7d6d8e1.tar.bz2 linux-c8e18acccb9be6dd1aa4fb8dbc1b98b3b7d6d8e1.zip |
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>
Diffstat (limited to 'drivers/scsi/ipr.c')
-rw-r--r-- | drivers/scsi/ipr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 95e4834c58ee..bf85974be862 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 |