diff options
Diffstat (limited to 'net/ipv4/arp.c')
-rw-r--r-- | net/ipv4/arp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 29df75a6bcc7..aab98b8a9945 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -421,8 +421,9 @@ static int arp_filter(__be32 sip, __be32 tip, struct net_device *dev) | |||
421 | struct rtable *rt; | 421 | struct rtable *rt; |
422 | int flag = 0; | 422 | int flag = 0; |
423 | /*unsigned long now; */ | 423 | /*unsigned long now; */ |
424 | struct net *net = dev_net(dev); | ||
424 | 425 | ||
425 | if (ip_route_output_key(dev_net(dev), &rt, &fl) < 0) | 426 | if (ip_route_output_key(net, &rt, &fl) < 0) |
426 | return 1; | 427 | return 1; |
427 | if (rt->u.dst.dev != dev) { | 428 | if (rt->u.dst.dev != dev) { |
428 | NET_INC_STATS_BH(LINUX_MIB_ARPFILTER); | 429 | NET_INC_STATS_BH(LINUX_MIB_ARPFILTER); |