aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2017-02-15 12:06:19 -0500
committerMike Snitzer <snitzer@redhat.com>2017-02-16 14:17:07 -0500
commit6085831883c25860264721df15f05bbded45e2a2 (patch)
tree289ac27c740fce4b61c4939ddd1125d72d99b07c /drivers/md
parentdm space map metadata: constify dm_space_map structures (diff)
downloadlinux-dev-6085831883c25860264721df15f05bbded45e2a2.tar.xz
linux-dev-6085831883c25860264721df15f05bbded45e2a2.zip
dm stats: fix a leaked s->histogram_boundaries array
Fixes: dfcfac3e4cd9 ("dm stats: collect and report histogram of IO latencies") Cc: stable@vger.kernel.org # v4.2+ Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-stats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-stats.c b/drivers/md/dm-stats.c
index 38b05f23b96c..0250e7e521ab 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) {