All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20221122164604.66621-3-ja@ssi.bg>

diff --git a/a/1.txt b/N1/1.txt
index ac8b3a5..064ffec 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -220,3 +220,18 @@ index 9016b641ae52..ec6db864ac36 100644
 -	}
 -
 -	spin_lock_init(&ipvs->tot_stats->s.lock);
+-
+ #ifdef CONFIG_PROC_FS
+ 	if (!proc_create_net("ip_vs", 0, ipvs->net->proc_net,
+ 			     &ip_vs_info_seq_ops, sizeof(struct ip_vs_iter)))
+@@ -4225,7 +4239,7 @@ int __net_init ip_vs_control_net_init(struct netns_ipvs *ipvs)
+ 
+ err_vs:
+ #endif
+-	free_percpu(ipvs->tot_stats->s.cpustats);
++	ip_vs_stats_release(&ipvs->tot_stats->s);
+ 
+ err_tot_stats:
+ 	kfree(ipvs->tot_stats);
+-- 
+2.38.1
diff --git a/a/content_digest b/N1/content_digest
index 3cde65c..717da14 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -232,6 +232,21 @@
  "-\t\tu64_stats_init(&ipvs_tot_stats->syncp);\n"
  "-\t}\n"
  "-\n"
- "-\tspin_lock_init(&ipvs->tot_stats->s.lock);"
+ "-\tspin_lock_init(&ipvs->tot_stats->s.lock);\n"
+ "-\n"
+ " #ifdef CONFIG_PROC_FS\n"
+ " \tif (!proc_create_net(\"ip_vs\", 0, ipvs->net->proc_net,\n"
+ " \t\t\t     &ip_vs_info_seq_ops, sizeof(struct ip_vs_iter)))\n"
+ "@@ -4225,7 +4239,7 @@ int __net_init ip_vs_control_net_init(struct netns_ipvs *ipvs)\n"
+ " \n"
+ " err_vs:\n"
+ " #endif\n"
+ "-\tfree_percpu(ipvs->tot_stats->s.cpustats);\n"
+ "+\tip_vs_stats_release(&ipvs->tot_stats->s);\n"
+ " \n"
+ " err_tot_stats:\n"
+ " \tkfree(ipvs->tot_stats);\n"
+ "-- \n"
+ 2.38.1
 
-8f8bd7d55d6e64e43e644fab5e1e2490278d94ba85529ad2289a49cef4a54cba
+af59f2c51b74cca05c3760fc6e64706b27ee4af3020808ae3d49cb0b6288d4f5

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.