Merge branch 'master' of /repos/git/net-next-2.6
[platform/adaptation/renesas_rcar/renesas_kernel.git] / net / ipv6 / netfilter / ip6_tables.c
index 0376ed6..4332f45 100644 (file)
@@ -1169,10 +1169,10 @@ static int get_info(struct net *net, void __user *user, int *len, int compat)
        if (t && !IS_ERR(t)) {
                struct ip6t_getinfo info;
                const struct xt_table_info *private = t->private;
-
 #ifdef CONFIG_COMPAT
+               struct xt_table_info tmp;
+
                if (compat) {
-                       struct xt_table_info tmp;
                        ret = compat_table_info(private, &tmp);
                        xt_compat_flush_offsets(AF_INET6);
                        private = &tmp;