Browse Source

[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>
Arnaldo Carvalho de Melo 18 years ago
parent
commit
c7a3c5da35
1 changed files with 1 additions and 1 deletions
  1. 1 1
      net/ipv4/udp.c

+ 1 - 1
net/ipv4/udp.c

@@ -1002,7 +1002,7 @@ static int udp_encap_rcv(struct sock * sk, struct sk_buff *skb)
 	 * transport header to point to ESP.  Keep UDP on the stack
 	 * transport header to point to ESP.  Keep UDP on the stack
 	 * for later.
 	 * for later.
 	 */
 	 */
-	skb->h.raw = skb_pull(skb, len);
+	skb->h.raw = __skb_pull(skb, len);
 
 
 	/* modify the protocol (it's ESP!) */
 	/* modify the protocol (it's ESP!) */
 	iph->protocol = IPPROTO_ESP;
 	iph->protocol = IPPROTO_ESP;