Skip to content

Commit a3dd3a4

Browse files
tititiou36dledford
authored andcommitted
IB/cma: Fix reversed test
This test looks reverted. We should log an error message only if 'ib_attach_mcast()' fails. Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 5c37077 commit a3dd3a4

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/core

1 file changed

+1
-1
lines changed

drivers/infiniband/core/cma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3837,7 +3837,7 @@ static int cma_ib_mc_handler(int status, struct ib_sa_multicast *multicast)
38373837
if (!status && id_priv->id.qp) {
38383838
status = ib_attach_mcast(id_priv->id.qp, &multicast->rec.mgid,
38393839
be16_to_cpu(multicast->rec.mlid));
3840-
if (!status)
3840+
if (status)
38413841
pr_debug_ratelimited("RDMA CM: MULTICAST_ERROR: failed to attach QP. status %d\n",
38423842
status);
38433843
}

0 commit comments

Comments
 (0)