All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] ipr: Fix error return code in ipr_probe_ioa()
@ 2016-07-29 16:00 Wei Yongjun
  2016-07-29 19:53 ` Brian King
  2016-08-02  5:19 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Wei Yongjun @ 2016-07-29 16:00 UTC (permalink / raw)
  To: Brian King, James E.J. Bottomley, Martin K. Petersen
  Cc: Wei Yongjun, linux-scsi

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(+)

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-02  5:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-29 16:00 [PATCH -next] ipr: Fix error return code in ipr_probe_ioa() Wei Yongjun
2016-07-29 19:53 ` Brian King
2016-08-02  5:19 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.