[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190902092731.1055757-1-haakon.bugge@oracle.com>
Date: Mon, 2 Sep 2019 11:27:31 +0200
From: Håkon Bugge <haakon.bugge@...cle.com>
To: Doug Ledford <dledford@...hat.com>, Jason Gunthorpe <jgg@...pe.ca>
Cc: linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org,
Håkon Bugge <haakon.bugge@...cle.com>
Subject: [PATCH] RDMA/cma: fix false error message
In addr_handler(), assuming status == 0 and the device already has
been acquired (id_priv->cma_dev != NULL), we get the following
incorrect "error" message:
RDMA CM: ADDR_ERROR: failed to resolve IP. status 0
Signed-off-by: Håkon Bugge <haakon.bugge@...cle.com>
---
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 19f1730a4f24..c7985c24f914 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -3046,7 +3046,7 @@ static void addr_handler(int status, struct sockaddr *src_addr,
if (status)
pr_debug_ratelimited("RDMA CM: ADDR_ERROR: failed to acquire device. status %d\n",
status);
- } else {
+ } else if (status) {
pr_debug_ratelimited("RDMA CM: ADDR_ERROR: failed to resolve IP. status %d\n", status);
}
--
2.20.1
Powered by blists - more mailing lists