From: Vasily Averin Date: Mon, 30 Oct 2006 23:13:28 +0000 (-0800) Subject: [NETFILTER]: ip_tables: compat error way cleanup X-Git-Tag: MMI-PSA29.97-13-9~45515^2~20^2~279^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ef4512e76679b4f4997f60f93f8a576a0d20c26b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [NETFILTER]: ip_tables: compat error way cleanup This patch adds forgotten compat_flush_offset() call to error way of translate_compat_table(). May lead to table corruption on the next compat_do_replace(). Signed-off-by: Vasily Averin Acked-by: Dmitry Mishin Acked-by: Kirill Korotaev Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c index e2c7f6e024c5..0f4835cf0e4d 100644 --- a/net/ipv4/netfilter/ip_tables.c +++ b/net/ipv4/netfilter/ip_tables.c @@ -1725,6 +1725,7 @@ free_newinfo: out: return ret; out_unlock: + compat_flush_offsets(); xt_compat_unlock(AF_INET); goto out; }