diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-10-07 10:43:04 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-10-07 10:43:04 -0400 |
commit | a56e74f546b64be93731e42d83baf5b538cc1b11 (patch) | |
tree | 18f6dee45d801e57ac9db2a31664b0d5c0762c50 /net/core | |
parent | d08e2e09042bd3f7ef66a35cb4bb92794ab26bb2 (diff) | |
parent | e4e7f10bfc4069925e99cc4b428c3434e30b6c3f (diff) |
Merge branch 'arm-aesbs' of git://git.linaro.org/people/ardbiesheuvel/linux-arm into devel-stable
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/netpoll.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 2c637e9a0b27..fc75c9e461b8 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
@@ -550,7 +550,7 @@ static void netpoll_neigh_reply(struct sk_buff *skb, struct netpoll_info *npinfo | |||
550 | return; | 550 | return; |
551 | 551 | ||
552 | proto = ntohs(eth_hdr(skb)->h_proto); | 552 | proto = ntohs(eth_hdr(skb)->h_proto); |
553 | if (proto == ETH_P_IP) { | 553 | if (proto == ETH_P_ARP) { |
554 | struct arphdr *arp; | 554 | struct arphdr *arp; |
555 | unsigned char *arp_ptr; | 555 | unsigned char *arp_ptr; |
556 | /* No arp on this interface */ | 556 | /* No arp on this interface */ |
@@ -1284,15 +1284,14 @@ EXPORT_SYMBOL_GPL(__netpoll_free_async); | |||
1284 | 1284 | ||
1285 | void netpoll_cleanup(struct netpoll *np) | 1285 | void netpoll_cleanup(struct netpoll *np) |
1286 | { | 1286 | { |
1287 | if (!np->dev) | ||
1288 | return; | ||
1289 | |||
1290 | rtnl_lock(); | 1287 | rtnl_lock(); |
1288 | if (!np->dev) | ||
1289 | goto out; | ||
1291 | __netpoll_cleanup(np); | 1290 | __netpoll_cleanup(np); |
1292 | rtnl_unlock(); | ||
1293 | |||
1294 | dev_put(np->dev); | 1291 | dev_put(np->dev); |
1295 | np->dev = NULL; | 1292 | np->dev = NULL; |
1293 | out: | ||
1294 | rtnl_unlock(); | ||
1296 | } | 1295 | } |
1297 | EXPORT_SYMBOL(netpoll_cleanup); | 1296 | EXPORT_SYMBOL(netpoll_cleanup); |
1298 | 1297 | ||