hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/net/ipv6/netfilter/ip6_tables.c
....@@ -1062,7 +1062,6 @@
10621062 struct xt_counters *counters;
10631063 struct ip6t_entry *iter;
10641064
1065
- ret = 0;
10661065 counters = xt_counters_alloc(num_counters);
10671066 if (!counters) {
10681067 ret = -ENOMEM;
....@@ -1108,7 +1107,7 @@
11081107 net_warn_ratelimited("ip6tables: counters copy to user failed while replacing table\n");
11091108 }
11101109 vfree(counters);
1111
- return ret;
1110
+ return 0;
11121111
11131112 put_module:
11141113 module_put(t->me);