Skip to content

Commit 6bce6b4

Browse files
yoshfujidavem330
authored andcommitted
ndisc: Use skb_linearize() instead of pskb_may_pull(skb, skb->len).
Suggested by Eric Dumazet <[email protected]>. Signed-off-by: YOSHIFUJI Hideaki <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c558e9f commit 6bce6b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/ndisc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ int ndisc_rcv(struct sk_buff *skb)
15091509
{
15101510
struct nd_msg *msg;
15111511

1512-
if (!pskb_may_pull(skb, skb->len))
1512+
if (skb_linearize(skb))
15131513
return 0;
15141514

15151515
msg = (struct nd_msg *)skb_transport_header(skb);

0 commit comments

Comments
 (0)