Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef4512e7 authored by Vasily Averin's avatar Vasily Averin Committed by David S. Miller
Browse files

[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>
parent 590bdf7f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1725,6 +1725,7 @@ translate_compat_table(const char *name,
out:
	return ret;
out_unlock:
	compat_flush_offsets();
	xt_compat_unlock(AF_INET);
	goto out;
}