gtp: reload GTPv1 header after pskb_may_pull()
authorPablo Neira <pablo@netfilter.org>
Tue, 10 May 2016 19:33:38 +0000 (21:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 May 2016 19:56:23 +0000 (15:56 -0400)
commit93edb8c7f94fb3d384790ac8a83c3fb9389f6ca5
tree76baacecad6ebd442b864df240b9ed5224107e41
parent1dee3f59a8d5e711797dc82628aaf94a64e99922
gtp: reload GTPv1 header after pskb_may_pull()

The GTPv1 header flags indicate the presence of optional extensions
after this header. Refresh the pointer to the GTPv1 header as skb->head
might have be reallocated via pskb_may_pull().

Fixes: 459aa660eb1d ("gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)")
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gtp.c