Message ID | 1469808045-1821-1-git-send-email-weiyj.lk@gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Acked-by: Brian King <brking@linux.vnet.ibm.com>
>>>>> "Wei" == Wei Yongjun <weiyj.lk@gmail.com> writes:
Wei> Fix to return error code -ENOMEM from the workqueue alloc error
Wei> handling case instead of 0, as done elsewhere in this function.
Applied to 4.8/scsi-queue.
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
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> --- drivers/scsi/ipr.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html