Commit c7a3c5da authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo Committed by David S. Miller

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

Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6dea649a
...@@ -1002,7 +1002,7 @@ static int udp_encap_rcv(struct sock * sk, struct sk_buff *skb) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment