l2tp: fix a typo in l2tp_eth_dev_recv()

[ Upstream commit c0cc88a762 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Eric Dumazet
2012-09-04 15:54:55 -04:00
committed by Greg Kroah-Hartman
parent 92da074473
commit 60e6a188d4

View File

@@ -132,7 +132,7 @@ static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb,
printk("\n");
}
if (!pskb_may_pull(skb, sizeof(ETH_HLEN)))
if (!pskb_may_pull(skb, ETH_HLEN))
goto error;
secpath_reset(skb);