aboutsummaryrefslogtreecommitdiffstats
path: root/lib/percpu_counter.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/percpu_counter.c')
-rw-r--r--lib/percpu_counter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/percpu_counter.c b/lib/percpu_counter.c
index a8663890a88c..71b265c330ce 100644
--- a/lib/percpu_counter.c
+++ b/lib/percpu_counter.c
@@ -104,13 +104,13 @@ void percpu_counter_destroy(struct percpu_counter *fbc)
104 if (!fbc->counters) 104 if (!fbc->counters)
105 return; 105 return;
106 106
107 free_percpu(fbc->counters);
108 fbc->counters = NULL;
109#ifdef CONFIG_HOTPLUG_CPU 107#ifdef CONFIG_HOTPLUG_CPU
110 mutex_lock(&percpu_counters_lock); 108 mutex_lock(&percpu_counters_lock);
111 list_del(&fbc->list); 109 list_del(&fbc->list);
112 mutex_unlock(&percpu_counters_lock); 110 mutex_unlock(&percpu_counters_lock);
113#endif 111#endif
112 free_percpu(fbc->counters);
113 fbc->counters = NULL;
114} 114}
115EXPORT_SYMBOL(percpu_counter_destroy); 115EXPORT_SYMBOL(percpu_counter_destroy);
116 116