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

[SK_BUFF]: Use skb_reset_network_header where the return of __pskb_pull was being used

It returns skb->data, so we can just use skb_reset_network_header after it.
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7e28ecc2
...@@ -617,7 +617,8 @@ static int ipgre_rcv(struct sk_buff *skb) ...@@ -617,7 +617,8 @@ static int ipgre_rcv(struct sk_buff *skb)
} }
skb_reset_mac_header(skb); skb_reset_mac_header(skb);
skb->nh.raw = __pskb_pull(skb, offset); __pskb_pull(skb, offset);
skb_reset_network_header(skb);
skb_postpull_rcsum(skb, skb->h.raw, offset); skb_postpull_rcsum(skb, skb->h.raw, offset);
skb->pkt_type = PACKET_HOST; skb->pkt_type = PACKET_HOST;
#ifdef CONFIG_NET_IPGRE_BROADCAST #ifdef CONFIG_NET_IPGRE_BROADCAST
......
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