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>
This commit is contained in:
Hariprasad S 2014-09-24 03:53:42 +05:30 committed by Roland Dreier
parent 04524a47c3
commit d480201b22
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}