summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMoni Shoua <monis@mellanox.com>2017-05-23 10:48:45 +0300
committerDoug Ledford <dledford@redhat.com>2017-07-17 11:45:42 -0400
commitcbd09aebc2d62095b05797af5c9a315e3a71dcea (patch)
treeb8b7eed2c10d5b8901891348ce80a57027cc5dd5 /include
parentbebb2a473a43c8f84a8210687d1cbdde503046d7 (diff)
downloadlinux-cbd09aebc2d62095b05797af5c9a315e3a71dcea.tar.bz2
IB/core: Don't resolve IP address to the loopback device
When resolving an IP address that is on the host of the caller the result from querying the routing table is the loopback device. This is not a valid response, because it doesn't represent the RDMA device and the port. Therefore, callers need to check the resolved device and if it is a loopback device find an alternative way to resolve it. To avoid this we make sure that the response from rdma_resolve_ip() will not be the loopback device. While that, we fix an static checker warning about dereferencing an unintitialized pointer using the same solution as in commit abeffce90c7f ("net/mlx5e: Fix a -Wmaybe-uninitialized warning") as a reference. Signed-off-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions