Skip to content

Commit

Permalink
l2tp: fix a typo in l2tp_eth_dev_recv()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 4, 2012
1 parent 9d148e3 commit c0cc88a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/l2tp/l2tp_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb,
print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, skb->data, length);
}

if (!pskb_may_pull(skb, sizeof(ETH_HLEN)))
if (!pskb_may_pull(skb, ETH_HLEN))
goto error;

secpath_reset(skb);
Expand Down

0 comments on commit c0cc88a

Please sign in to comment.