diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2017-02-15 17:06:19 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-12 05:41:44 (GMT) |
commit | bad6c16b81b68d81e95ada246649dacc3cdd5e1d (patch) | |
tree | 955ac2b686c8f5e86b8ac92b57493040f24f39bf | |
parent | 9987feba902cbd6429cf3b3a3b6614aa23a555c2 (diff) | |
download | linux-bad6c16b81b68d81e95ada246649dacc3cdd5e1d.tar.xz |
dm stats: fix a leaked s->histogram_boundaries array
commit 6085831883c25860264721df15f05bbded45e2a2 upstream.
Fixes: dfcfac3e4cd9 ("dm stats: collect and report histogram of IO latencies")
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/md/dm-stats.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-stats.c b/drivers/md/dm-stats.c index 38b05f2..0250e7e 100644 --- a/drivers/md/dm-stats.c +++ b/drivers/md/dm-stats.c @@ -175,6 +175,7 @@ static void dm_stat_free(struct rcu_head *head) int cpu; struct dm_stat *s = container_of(head, struct dm_stat, rcu_head); + kfree(s->histogram_boundaries); kfree(s->program_id); kfree(s->aux_data); for_each_possible_cpu(cpu) { |