aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 811507c39805..a0c60607f1a7 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2253,8 +2253,10 @@ int netif_receive_skb(struct sk_buff *skb)
2253 rcu_read_lock(); 2253 rcu_read_lock();
2254 2254
2255 /* Don't receive packets in an exiting network namespace */ 2255 /* Don't receive packets in an exiting network namespace */
2256 if (!net_alive(dev_net(skb->dev))) 2256 if (!net_alive(dev_net(skb->dev))) {
2257 kfree_skb(skb);
2257 goto out; 2258 goto out;
2259 }
2258 2260
2259#ifdef CONFIG_NET_CLS_ACT 2261#ifdef CONFIG_NET_CLS_ACT
2260 if (skb->tc_verd & TC_NCLS) { 2262 if (skb->tc_verd & TC_NCLS) {