ndisc: Use skb_linearize() instead of pskb_may_pull(skb, skb->len).
Subsystems (3)
PATCH 3/19 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]>
--- net/ipv6/ndisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv6/ndisc.c +1 -1
@@ -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);
Signature · 1 line
1.7.9.5