From: Wei Yongjun Date: Fri, 29 Jul 2016 16:00:45 +0000 (+0000) Subject: ipr: Fix error return code in ipr_probe_ioa() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c8e18acccb9be6dd1aa4fb8dbc1b98b3b7d6d8e1;p=openwrt%2Fstaging%2Fblogic.git 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 Acked-by: Brian King Signed-off-by: Martin K. Petersen --- 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