Commit 5b9322ae authored by Patrick McHardy's avatar Patrick McHardy Committed by Chris Wright

[PATCH] 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: default avatarVasily Averin <vvs@openvz.org>
Acked-by: default avatarDmitry Mishin <dim@openvz.org>
Acked-by: default avatarKirill Korotaev <dev@openvz.org>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
parent e4cb788a
...@@ -1775,6 +1775,7 @@ translate_compat_table(const char *name, ...@@ -1775,6 +1775,7 @@ translate_compat_table(const char *name,
out: out:
return ret; return ret;
out_unlock: out_unlock:
compat_flush_offsets();
xt_compat_unlock(AF_INET); xt_compat_unlock(AF_INET);
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment