All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IB/cma: Fix reversed test
@ 2017-01-27 13:15 ` Christophe JAILLET
  0 siblings, 0 replies; 17+ messages in thread
From: Christophe JAILLET @ 2017-01-27 13:15 UTC (permalink / raw)
  To: dledford, sean.hefty, hal.rosenstock
  Cc: linux-rdma, linux-kernel, kernel-janitors, Christophe JAILLET

This test looks reverted.
We should log an error message only if 'ib_attach_mcast()' fails.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
 drivers/infiniband/core/cma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index cfefb941d729..175f62e5841e 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -3838,7 +3838,7 @@ static int cma_ib_mc_handler(int status, struct ib_sa_multicast *multicast)
 	if (!status && id_priv->id.qp) {
 		status = ib_attach_mcast(id_priv->id.qp, &multicast->rec.mgid,
 					 be16_to_cpu(multicast->rec.mlid));
-		if (!status)
+		if (status)
 			pr_debug_ratelimited("RDMA CM: MULTICAST_ERROR: failed to attach QP. status %d\n",
 					     status);
 	}
-- 
2.9.3

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

end of thread, other threads:[~2017-02-06  9:32 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-27 13:15 [PATCH] IB/cma: Fix reversed test Christophe JAILLET
2017-01-27 13:15 ` Christophe JAILLET
2017-01-27 19:24 ` Doug Ledford
2017-01-27 19:24   ` Doug Ledford
2017-01-27 21:31 ` Bart Van Assche
     [not found]   ` <1485552696.13218.0.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-01-28  0:05     ` Doug Ledford
2017-01-28  0:05       ` Doug Ledford
2017-01-28  0:05       ` Doug Ledford
2017-01-28  6:59       ` Dan Carpenter
2017-01-28  6:59         ` Dan Carpenter
2017-01-28 12:47         ` Majd Dibbiny
2017-01-28 13:01           ` Majd Dibbiny
2017-02-03 18:34         ` Doug Ledford
2017-02-03 18:34           ` Doug Ledford
     [not found]           ` <2fde1e87-a345-4697-e205-051a3973e624-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-02-06  9:32             ` Dan Carpenter
2017-02-06  9:32               ` Dan Carpenter
2017-02-06  9:32               ` Dan Carpenter

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.