Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202700
b: refs/heads/master
c: cfa087f
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 10, 2010
1 parent 1d29053 commit d9e9847
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: 88e7594a9775e54dcd421cb246406dce62e48bee
refs/heads/master: cfa087f689402438e3cb0f077e649d01c871b0e7
12 changes: 5 additions & 7 deletions trunk/net/ipv4/icmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ static void icmp_address(struct sk_buff *skb)
/*
* RFC1812 (4.3.3.9). A router SHOULD listen all replies, and complain
* loudly if an inconsistency is found.
* called with rcu_read_lock()
*/

static void icmp_address_reply(struct sk_buff *skb)
Expand All @@ -935,12 +936,12 @@ static void icmp_address_reply(struct sk_buff *skb)
struct in_ifaddr *ifa;

if (skb->len < 4 || !(rt->rt_flags&RTCF_DIRECTSRC))
goto out;
return;

in_dev = in_dev_get(dev);
in_dev = __in_dev_get_rcu(dev);
if (!in_dev)
goto out;
rcu_read_lock();
return;

if (in_dev->ifa_list &&
IN_DEV_LOG_MARTIANS(in_dev) &&
IN_DEV_FORWARD(in_dev)) {
Expand All @@ -958,9 +959,6 @@ static void icmp_address_reply(struct sk_buff *skb)
mp, dev->name, &rt->rt_src);
}
}
rcu_read_unlock();
in_dev_put(in_dev);
out:;
}

static void icmp_discard(struct sk_buff *skb)
Expand Down

0 comments on commit d9e9847

Please sign in to comment.