Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8e18acc authored by Wei Yongjun's avatar Wei Yongjun Committed by Martin K. Petersen
Browse files

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: default avatarWei Yongjun <weiyj.lk@gmail.com>
Acked-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent a561a8ea
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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