]> git.itanic.dy.fi Git - linux-stable/commit
RDMA/cma: Fix false error message
authorHåkon Bugge <haakon.bugge@oracle.com>
Mon, 2 Sep 2019 09:27:31 +0000 (11:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 13 Sep 2019 19:55:55 +0000 (16:55 -0300)
commita6e4d254c19b541a58caced322111084b27a7788
treef4cedd3b73e6733e7e21d928d2ee145aeca19ec1
parent98c09b8c9767c61f97976c358c47ba17c026dc77
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

Fixes: 498683c6a7ee ("IB/cma: Add debug messages to error flows")
Link: https://lore.kernel.org/r/20190902092731.1055757-1-haakon.bugge@oracle.com
Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c