mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 06:43:09 +00:00
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>
This commit is contained in:
parent
a561a8ea83
commit
c8e18acccb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user