From 2d2f8f922a471055f79172dc58c1dee2741edf4c Mon Sep 17 00:00:00 2001 From: Mike Snitzer Date: Tue, 6 Aug 2013 08:18:25 -0400 Subject: [PATCH 13/14] dm stats: fix leak in dm_stat_free was kvfree()'ing percpu_alloc_size rather than shared_alloc_size --- drivers/md/dm-stats.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/md/dm-stats.c b/drivers/md/dm-stats.c index ea0e64f..d966f2b 100644 --- a/drivers/md/dm-stats.c +++ b/drivers/md/dm-stats.c @@ -165,7 +165,7 @@ static void dm_stat_free(struct rcu_head *head) kfree(m->aux); for_each_possible_cpu(cpu) kvfree(m->stat_percpu[cpu], m->percpu_alloc_size); - kvfree(m, m->percpu_alloc_size); + kvfree(m, m->shared_alloc_size); } static int dm_stat_in_flight(struct dm_stat_shared *s) -- 1.7.1