aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/tun.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 2834a01bae24..909b73db4a99 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -380,6 +380,10 @@ static netdev_tx_t tun_net_xmit(struct sk_buff *skb, struct net_device *dev)
380 } 380 }
381 } 381 }
382 382
383 /* Orphan the skb - required as we might hang on to it
384 * for indefinite time. */
385 skb_orphan(skb);
386
383 /* Enqueue packet */ 387 /* Enqueue packet */
384 skb_queue_tail(&tun->socket.sk->sk_receive_queue, skb); 388 skb_queue_tail(&tun->socket.sk->sk_receive_queue, skb);
385 dev->trans_start = jiffies; 389 dev->trans_start = jiffies;