mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
ndisc: Use skb_linearize() instead of pskb_may_pull(skb, skb->len).
Suggested by Eric Dumazet <edumazet@google.com>. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c558e9fca8
commit
6bce6b4e16
1 changed files with 1 additions and 1 deletions
|
@ -1509,7 +1509,7 @@ int ndisc_rcv(struct sk_buff *skb)
|
|||
{
|
||||
struct nd_msg *msg;
|
||||
|
||||
if (!pskb_may_pull(skb, skb->len))
|
||||
if (skb_linearize(skb))
|
||||
return 0;
|
||||
|
||||
msg = (struct nd_msg *)skb_transport_header(skb);
|
||||
|
|
Loading…
Reference in a new issue