Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[UDP]: Use __skb_pull since we have checked it won't fail with pskb_may_pull

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Arnaldo Carvalho de Melo and committed by
David S. Miller
c7a3c5da 6dea649a

+1 -1
+1 -1
net/ipv4/udp.c
··· 1002 1002 * transport header to point to ESP. Keep UDP on the stack 1003 1003 * for later. 1004 1004 */ 1005 - skb->h.raw = skb_pull(skb, len); 1005 + skb->h.raw = __skb_pull(skb, len); 1006 1006 1007 1007 /* modify the protocol (it's ESP!) */ 1008 1008 iph->protocol = IPPROTO_ESP;