[NETFILTER]: ip_tables: compat error way cleanup
authorVasily Averin <vvs@openvz.org>
Mon, 30 Oct 2006 23:13:28 +0000 (15:13 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 30 Oct 2006 23:24:45 +0000 (15:24 -0800)
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 <vvs@openvz.org>
Acked-by: Dmitry Mishin <dim@openvz.org>
Acked-by: Kirill Korotaev <dev@openvz.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_tables.c

index e2c7f6e..0f4835c 100644 (file)
@@ -1725,6 +1725,7 @@ free_newinfo:
 out:
        return ret;
 out_unlock:
+       compat_flush_offsets();
        xt_compat_unlock(AF_INET);
        goto out;
 }