summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4
diff options
context:
space:
mode:
authorHariprasad S <hariprasad@chelsio.com>2014-09-24 00:23:42 +0200
committerRoland Dreier <roland@purestorage.com>2014-10-14 09:34:08 +0200
commitd480201b2261d26b4ca1fa4cc2bfc6cb644733a3 (patch)
treeab9f8f2d518b3ffc5b6975a194d21809ba17131e /drivers/infiniband/hw/cxgb4
parentRDMA/cxgb4: Take IPv6 into account for best_mtu and set_emss (diff)
downloadlinux-d480201b2261d26b4ca1fa4cc2bfc6cb644733a3.tar.xz
linux-d480201b2261d26b4ca1fa4cc2bfc6cb644733a3.zip
RDMA/cxgb4: Add missing neigh_release in find_route
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4')
-rw-r--r--drivers/infiniband/hw/cxgb4/cm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index 2ca9ec8d6474..2ee9892850ba 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -417,6 +417,7 @@ static struct dst_entry *find_route(struct c4iw_dev *dev, __be32 local_ip,
return NULL;
if (!our_interface(dev, n->dev) &&
!(n->dev->flags & IFF_LOOPBACK)) {
+ neigh_release(n);
dst_release(&rt->dst);
return NULL;
}