projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d148e3
)
l2tp: fix a typo in l2tp_eth_dev_recv()
author
Eric Dumazet
<edumazet@google.com>
Tue, 4 Sep 2012 19:54:55 +0000
(15:54 -0400)
committer
David S. Miller
<davem@davemloft.net>
Tue, 4 Sep 2012 19:54:55 +0000
(15:54 -0400)
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>
net/l2tp/l2tp_eth.c
patch
|
blob
|
blame
|
history
diff --git
a/net/l2tp/l2tp_eth.c
b/net/l2tp/l2tp_eth.c
index f9ee74deeac26f5469271a0800669cc82ffddc63..3bfb34aaee293cb697f36ae88a060f3329571214 100644
(file)
--- a/
net/l2tp/l2tp_eth.c
+++ b/
net/l2tp/l2tp_eth.c
@@
-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);