gre: fix improper error handling
authorxeb@mail.ru <xeb@mail.ru>
Fri, 22 Jul 2011 20:49:40 +0000 (20:49 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Aug 2011 01:31:39 +0000 (18:31 -0700)
commit06e67267adf0e3b9a25a78250a1c7caefd36f843
treee3a3f7129a0bd38662e5ff6b3e42732a468443fd
parentcb737cb02933192dcbb141480e3dc8153b89be48
gre: fix improper error handling

[ Upstream commit 559fafb94ad9e4cd8774f39241917c57396f9fc5 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/gre.c