gre: fix improper error handling
authorxeb@mail.ru <xeb@mail.ru>
Fri, 22 Jul 2011 20:49:40 +0000 (20:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Jul 2011 03:06:00 +0000 (20:06 -0700)
commit559fafb94ad9e4cd8774f39241917c57396f9fc5
treef1c255fff42f8429ba3d17f4a7e19f1cc8cfe338
parentb0fe4a31849063fcac0bdc93716ca92615e93f57
gre: fix improper error handling

Fix improper protocol err_handler, current implementation is fully
unapplicable and may cause kernel crash due to double kfree_skb.

Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/gre.c