All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH -next] IB/mthca: Fix error return code in __mthca_init_one()
@ 2018-10-03 22:16 Jason Gunthorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2018-10-03 22:16 UTC (permalink / raw)
  To: kernel-janitors

On Sat, Sep 29, 2018 at 03:55:16AM +0000, Wei Yongjun wrote:
> Fix to return a negative error code from the mthca_cmd_init() error
> handling case instead of 0, as done elsewhere in this function.
> 
> Fixes: 80fd8238734c ("[PATCH] IB/mthca: Encapsulate command interface init")
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---
>  drivers/infiniband/hw/mthca/mthca_main.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied to for-next

Thanks,
Jason

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

* [PATCH -next] IB/mthca: Fix error return code in __mthca_init_one()
@ 2018-09-29  3:55 Wei Yongjun
  0 siblings, 0 replies; 2+ messages in thread
From: Wei Yongjun @ 2018-09-29  3:55 UTC (permalink / raw)
  To: kernel-janitors

Fix to return a negative error code from the mthca_cmd_init() error
handling case instead of 0, as done elsewhere in this function.

Fixes: 80fd8238734c ("[PATCH] IB/mthca: Encapsulate command interface init")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 drivers/infiniband/hw/mthca/mthca_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/mthca/mthca_main.c b/drivers/infiniband/hw/mthca/mthca_main.c
index f99c7e0..92c49bf 100644
--- a/drivers/infiniband/hw/mthca/mthca_main.c
+++ b/drivers/infiniband/hw/mthca/mthca_main.c
@@ -986,7 +986,8 @@ static int __mthca_init_one(struct pci_dev *pdev, int hca_type)
 		goto err_free_dev;
 	}
 
-	if (mthca_cmd_init(mdev)) {
+	err = mthca_cmd_init(mdev);
+	if (err) {
 		mthca_err(mdev, "Failed to init command interface, aborting.\n");
 		goto err_free_dev;
 	}

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

end of thread, other threads:[~2018-10-03 22:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-03 22:16 [PATCH -next] IB/mthca: Fix error return code in __mthca_init_one() Jason Gunthorpe
  -- strict thread matches above, loose matches on Subject: below --
2018-09-29  3:55 Wei Yongjun

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.