- statistics-infrastructure-fix-cpu-hot-unplug-related-memory-leak.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     statistics infrastructure: fix cpu hot unplug related memory leak
has been removed from the -mm tree.  Its filename was
     statistics-infrastructure-fix-cpu-hot-unplug-related-memory-leak.patch

This patch was dropped because it isn't in the present -mm lineup

------------------------------------------------------
Subject: statistics infrastructure: fix cpu hot unplug related memory leak
From: Martin Peschke <mp3@xxxxxxxxxx>

In case of CPU hotunplug statistics might have leaked some memory (lists of
struct statistic_entry_sparse, about 32 byte each, freed by
statistic_sparse_reset()).

Signed-off-by: Martin Peschke <mp3@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 lib/statistic.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN lib/statistic.c~statistics-infrastructure-fix-cpu-hot-unplug-related-memory-leak lib/statistic.c
--- a/lib/statistic.c~statistics-infrastructure-fix-cpu-hot-unplug-related-memory-leak
+++ a/lib/statistic.c
@@ -308,6 +308,7 @@ static int _statistic_hotcpu(struct stat
 		src = percpu_ptr(stat->data, cpu);
 		disc->merge(stat, dst, src);
 		local_irq_restore(flags);
+		disc->reset(stat, src);
 		percpu_depopulate(stat->data, cpu);
 		break;
 	}
_

Patches currently in -mm which might be from mp3@xxxxxxxxxx are


-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux