Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289737
b: refs/heads/master
c: 64b7007
h: refs/heads/master
i:
  289735: 2eb4ae1
v: v3
  • Loading branch information
David Miller committed Jan 26, 2012
1 parent f4dcb93 commit 1f04d2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02b619555ad68884bacfbe41893245394cb44885
refs/heads/master: 64b7007eb99b78cbdd6cca7a98e12794201b9725
10 changes: 6 additions & 4 deletions trunk/drivers/infiniband/hw/cxgb4/cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1562,11 +1562,11 @@ static int import_ep(struct c4iw_ep *ep, __be32 peer_ip, struct dst_entry *dst,
struct neighbour *n;
int err, step;

rcu_read_lock();
n = dst_get_neighbour_noref(dst);
err = -ENODEV;
n = dst_neigh_lookup(dst, &peer_ip);
if (!n)
goto out;
return -ENODEV;

rcu_read_lock();
err = -ENOMEM;
if (n->dev->flags & IFF_LOOPBACK) {
struct net_device *pdev;
Expand Down Expand Up @@ -1614,6 +1614,8 @@ static int import_ep(struct c4iw_ep *ep, __be32 peer_ip, struct dst_entry *dst,
out:
rcu_read_unlock();

neigh_release(n);

return err;
}

Expand Down

0 comments on commit 1f04d2c

Please sign in to comment.