hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/net/ipv4/netfilter/ip_tables.c
....@@ -1044,7 +1044,6 @@
10441044 struct xt_counters *counters;
10451045 struct ipt_entry *iter;
10461046
1047
- ret = 0;
10481047 counters = xt_counters_alloc(num_counters);
10491048 if (!counters) {
10501049 ret = -ENOMEM;
....@@ -1090,7 +1089,7 @@
10901089 net_warn_ratelimited("iptables: counters copy to user failed while replacing table\n");
10911090 }
10921091 vfree(counters);
1093
- return ret;
1092
+ return 0;
10941093
10951094 put_module:
10961095 module_put(t->me);