l2tp: fix a typo in l2tp_eth_dev_recv()
authorEric Dumazet <edumazet@google.com>
Tue, 4 Sep 2012 19:54:55 +0000 (15:54 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Oct 2012 02:31:32 +0000 (03:31 +0100)
[ Upstream commit c0cc88a7627c333de50b07b7c60b1d49d9d2e6cc ]

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: Ben Hutchings <ben@decadent.org.uk>
net/l2tp/l2tp_eth.c

index 3c55f63..2cef50b 100644 (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);