Re: [PATCH net] gre: fix error handler

2016-06-14 Thread Eric Dumazet
On Tue, 2016-06-14 at 22:15 -0700, Eric Dumazet wrote: > From: Eric Dumazet > > 1) gre_parse_header() can be called from gre_err() > >At this point transport header points to ICMP header, not the inner > header. > > 2) We can not really change transport header as ipgre_err() will later > as

[PATCH net] gre: fix error handler

2016-06-14 Thread Eric Dumazet
From: Eric Dumazet 1) gre_parse_header() can be called from gre_err() At this point transport header points to ICMP header, not the inner header. 2) We can not really change transport header as ipgre_err() will later assume transport header still points to ICMP header. 3) pskb_may_pull() lo