diff options
Diffstat (limited to 'net/ipv4/arp.c')
-rw-r--r-- | net/ipv4/arp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index f35309578170..d8e540c5b071 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -502,10 +502,8 @@ int arp_find(unsigned char *haddr, struct sk_buff *skb) | |||
502 | 502 | ||
503 | if (n) { | 503 | if (n) { |
504 | n->used = jiffies; | 504 | n->used = jiffies; |
505 | if (n->nud_state&NUD_VALID || neigh_event_send(n, skb) == 0) { | 505 | if (n->nud_state & NUD_VALID || neigh_event_send(n, skb) == 0) { |
506 | read_lock_bh(&n->lock); | 506 | neigh_ha_snapshot(haddr, n, dev); |
507 | memcpy(haddr, n->ha, dev->addr_len); | ||
508 | read_unlock_bh(&n->lock); | ||
509 | neigh_release(n); | 507 | neigh_release(n); |
510 | return 0; | 508 | return 0; |
511 | } | 509 | } |