mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
dm stats: fix a leaked s->histogram_boundaries array
commit6085831883upstream. Fixes:dfcfac3e4c("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>
This commit is contained in:
committed by
popcornmix
parent
6d2f176337
commit
cdaa0ca081
@@ -175,6 +175,7 @@ static void dm_stat_free(struct rcu_head *head)
|
|||||||
int cpu;
|
int cpu;
|
||||||
struct dm_stat *s = container_of(head, struct dm_stat, rcu_head);
|
struct dm_stat *s = container_of(head, struct dm_stat, rcu_head);
|
||||||
|
|
||||||
|
kfree(s->histogram_boundaries);
|
||||||
kfree(s->program_id);
|
kfree(s->program_id);
|
||||||
kfree(s->aux_data);
|
kfree(s->aux_data);
|
||||||
for_each_possible_cpu(cpu) {
|
for_each_possible_cpu(cpu) {
|
||||||
|
|||||||
Reference in New Issue
Block a user