ip_gre: fix a possible crash in ipgre_err()
authorEric Dumazet <edumazet@google.com>
Sat, 18 May 2013 08:36:03 +0000 (08:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 May 2013 07:18:52 +0000 (00:18 -0700)
commit96f5a846bdd60986992228bc7dae94d4d8eaacc0
tree6f999dce0e017d8e14d4257af04fdd9226b7fd42
parentb423e9ae49d78ea3f53b131c8d5a6087aed16fd6
ip_gre: fix a possible crash in ipgre_err()

Another fix needed in ipgre_err(), as parse_gre_header() might change
skb->head.

Bug added in commit c54419321455 (GRE: Refactor GRE tunneling code.)

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c