Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

l2tp: fix a typo in l2tp_eth_dev_recv()

While investigating l2tp bug, I hit a bug in eth_type_trans(),
because not enough bytes were pulled in skb head.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Eric Dumazet and committed by
David S. Miller
c0cc88a7 9d148e39

+1 -1
+1 -1
net/l2tp/l2tp_eth.c
··· 153 153 print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, skb->data, length); 154 154 } 155 155 156 - if (!pskb_may_pull(skb, sizeof(ETH_HLEN))) 156 + if (!pskb_may_pull(skb, ETH_HLEN)) 157 157 goto error; 158 158 159 159 secpath_reset(skb);