diff options
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index a57aa010cb25..288d8559f8c5 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -256,7 +256,7 @@ static __inline__ ssize_t tun_get_user(struct tun_struct *tun, struct iovec *iv, | |||
256 | 256 | ||
257 | switch (tun->flags & TUN_TYPE_MASK) { | 257 | switch (tun->flags & TUN_TYPE_MASK) { |
258 | case TUN_TUN_DEV: | 258 | case TUN_TUN_DEV: |
259 | skb->mac.raw = skb->data; | 259 | skb_reset_mac_header(skb); |
260 | skb->protocol = pi.proto; | 260 | skb->protocol = pi.proto; |
261 | skb->dev = tun->dev; | 261 | skb->dev = tun->dev; |
262 | break; | 262 | break; |