Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);