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)
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>

No differences found