diff options
author | Mustafa Ismail <mustafa.ismail@intel.com> | 2018-05-07 19:52:18 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-05-09 16:39:51 +0200 |
commit | eeb1af4f53fa74fd41d288b113eebcdfca4d311c (patch) | |
tree | 5bdd1c9005bad581daacea12b178cbba6836b38c /drivers/infiniband | |
parent | i40iw: Fix memory leak in error path of create QP (diff) | |
download | linux-eeb1af4f53fa74fd41d288b113eebcdfca4d311c.tar.xz linux-eeb1af4f53fa74fd41d288b113eebcdfca4d311c.zip |
i40iw: Use correct address in dst_neigh_lookup for IPv6
Use of incorrect structure address for IPv6 neighbor lookup
causes connections to IPv6 addresses to fail. Fix this by
using correct address in call to dst_neigh_lookup.
Fixes: f27b4746f378 ("i40iw: add connection management code")
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_cm.c b/drivers/infiniband/hw/i40iw/i40iw_cm.c index 4cfa8f4647e2..f7c6fd9ff6e2 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_cm.c +++ b/drivers/infiniband/hw/i40iw/i40iw_cm.c @@ -2093,7 +2093,7 @@ static int i40iw_addr_resolve_neigh_ipv6(struct i40iw_device *iwdev, if (netif_is_bond_slave(netdev)) netdev = netdev_master_upper_dev_get(netdev); - neigh = dst_neigh_lookup(dst, &dst_addr); + neigh = dst_neigh_lookup(dst, dst_addr.sin6_addr.in6_u.u6_addr32); rcu_read_lock(); if (neigh) { |