diff options
Diffstat (limited to 'arch/um/os-Linux/drivers/tuntap_kern.c')
-rw-r--r-- | arch/um/os-Linux/drivers/tuntap_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/os-Linux/drivers/tuntap_kern.c b/arch/um/os-Linux/drivers/tuntap_kern.c index 76570a2c25c3..f1714e7fb1d0 100644 --- a/arch/um/os-Linux/drivers/tuntap_kern.c +++ b/arch/um/os-Linux/drivers/tuntap_kern.c | |||
@@ -43,7 +43,7 @@ static int tuntap_read(int fd, struct sk_buff **skb, | |||
43 | { | 43 | { |
44 | *skb = ether_adjust_skb(*skb, ETH_HEADER_OTHER); | 44 | *skb = ether_adjust_skb(*skb, ETH_HEADER_OTHER); |
45 | if(*skb == NULL) return(-ENOMEM); | 45 | if(*skb == NULL) return(-ENOMEM); |
46 | return(net_read(fd, (*skb)->mac.raw, | 46 | return(net_read(fd, skb_mac_header(*skb), |
47 | (*skb)->dev->mtu + ETH_HEADER_OTHER)); | 47 | (*skb)->dev->mtu + ETH_HEADER_OTHER)); |
48 | } | 48 | } |
49 | 49 | ||