IB/core: Add missing check for addr_resolve callback return value
authorMark Bloch <markb@mellanox.com>
Thu, 27 Oct 2016 13:36:29 +0000 (16:36 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Nov 2016 01:03:44 +0000 (20:03 -0500)
commit61c3702863be9e9f1ef12ed5a5b17bae6cdfac0b
treefe6aa837a5642a25c3cfa070bcc638e043f40104
parentaeb76df46d1158d5f7f3d30f993a1bb6ee9c67a0
IB/core: Add missing check for addr_resolve callback return value

When calling rdma_resolve_ip inside rdma_addr_find_l2_eth_by_grh,
the return status of the request was ignored in the callback function
causing a successful return and an empty dmac.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Alex Vesker <valex@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/addr.c