aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ifb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ifb.c')
-rw-r--r--drivers/net/ifb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c
index f5c3598e59af..b06c6db4383a 100644
--- a/drivers/net/ifb.c
+++ b/drivers/net/ifb.c
@@ -34,6 +34,7 @@
34#include <linux/init.h> 34#include <linux/init.h>
35#include <linux/moduleparam.h> 35#include <linux/moduleparam.h>
36#include <net/pkt_sched.h> 36#include <net/pkt_sched.h>
37#include <net/net_namespace.h>
37 38
38#define TX_TIMEOUT (2*HZ) 39#define TX_TIMEOUT (2*HZ)
39 40
@@ -97,7 +98,7 @@ static void ri_tasklet(unsigned long dev)
97 stats->tx_packets++; 98 stats->tx_packets++;
98 stats->tx_bytes +=skb->len; 99 stats->tx_bytes +=skb->len;
99 100
100 skb->dev = __dev_get_by_index(skb->iif); 101 skb->dev = __dev_get_by_index(&init_net, skb->iif);
101 if (!skb->dev) { 102 if (!skb->dev) {
102 dev_kfree_skb(skb); 103 dev_kfree_skb(skb);
103 stats->tx_dropped++; 104 stats->tx_dropped++;