netfilter: xtables: compat out of scope fix
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 8 Feb 2010 19:17:43 +0000 (11:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Feb 2010 19:17:43 +0000 (11:17 -0800)
commit14c7dbe043d01a83a30633ab6b109ba2ac61d9f7
tree0358b6f285036f64c5f5cd6aac4bd2b0768fee8e
parent13ccdfc2af03e09e60791f7d4bc4ccf53398af7c
netfilter: xtables: compat out of scope fix

As per C99 6.2.4(2) when temporary table data goes out of scope,
the behaviour is undefined:

if (compat) {
struct foo tmp;
...
private = &tmp;
}
[dereference private]

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c