Commit 6bce6b4e authored by YOSHIFUJI Hideaki / 吉藤英明's avatar YOSHIFUJI Hideaki / 吉藤英明 Committed by David S. Miller

ndisc: Use skb_linearize() instead of pskb_may_pull(skb, skb->len).

Suggested by Eric Dumazet <edumazet@google.com>.
Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c558e9fc
...@@ -1509,7 +1509,7 @@ int ndisc_rcv(struct sk_buff *skb) ...@@ -1509,7 +1509,7 @@ int ndisc_rcv(struct sk_buff *skb)
{ {
struct nd_msg *msg; struct nd_msg *msg;
if (!pskb_may_pull(skb, skb->len)) if (skb_linearize(skb))
return 0; return 0;
msg = (struct nd_msg *)skb_transport_header(skb); msg = (struct nd_msg *)skb_transport_header(skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment