Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202662
b: refs/heads/master
c: faa9dcf
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 4, 2010
1 parent de5f660 commit bf68d5a
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 4736022844fe694c4ee971fa2b6c1cb38dadbc78
refs/heads/master: faa9dcf793beba05f7178b63a59eaa3ca5175b6a
11 changes: 4 additions & 7 deletions trunk/net/ipv4/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,10 @@ static inline int arp_fwd_proxy(struct in_device *in_dev,

/* place to check for proxy_arp for routes */

if ((out_dev = in_dev_get(rt->u.dst.dev)) != NULL) {
out_dev = __in_dev_get_rcu(rt->u.dst.dev);
if (out_dev)
omi = IN_DEV_MEDIUM_ID(out_dev);
in_dev_put(out_dev);
}

return (omi != imi && omi != -1);
}

Expand Down Expand Up @@ -741,7 +741,7 @@ void arp_send(int type, int ptype, __be32 dest_ip,
static int arp_process(struct sk_buff *skb)
{
struct net_device *dev = skb->dev;
struct in_device *in_dev = in_dev_get(dev);
struct in_device *in_dev = __in_dev_get_rcu(dev);
struct arphdr *arp;
unsigned char *arp_ptr;
struct rtable *rt;
Expand Down Expand Up @@ -890,7 +890,6 @@ static int arp_process(struct sk_buff *skb)
arp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr,sha);
} else {
pneigh_enqueue(&arp_tbl, in_dev->arp_parms, skb);
in_dev_put(in_dev);
return 0;
}
goto out;
Expand Down Expand Up @@ -936,8 +935,6 @@ static int arp_process(struct sk_buff *skb)
}

out:
if (in_dev)
in_dev_put(in_dev);
consume_skb(skb);
return 0;
}
Expand Down

0 comments on commit bf68d5a

Please sign in to comment.