mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 08:22:39 +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
@ -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 New Issue
Block a user