Percpu allocator should clear memory before returning it but the km
allocator forgot to do it. Fix it.
Signed-off-by: Tejun Heo
Spotted-by: Peter Zijlstra
---
mm/percpu-km.c |6 +-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/mm/percpu-km.c b/mm/percpu-km.c
index
Signed-off-by: Tejun Heo
Reported-by: Stephane Eranian
---
mm/percpu.c | 11 ++-
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/mm/percpu.c b/mm/percpu.c
index 0cd4bf6..12dea33 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -826,8 +826,8 @@ fail_unlock_mutex:
* @size
Hello,
On 09/10/2010 10:16 AM, Peter Zijlstra wrote:
> On Thu, 2010-09-09 at 23:41 +0200, Stephane Eranian wrote:
>>> alloc_percpu() is zalloc_percpu() in fact, memory is already cleared.
>>>
>> I remember thinking about this and trying to trace to the code down
>> to figure this out. But it is ra
On 09/10/2010 06:45 PM, Ingo Molnar wrote:
>
> * Randy Dunlap wrote:
>
>> On Fri, 10 Sep 2010 10:55:18 +0200 Peter Zijlstra wrote:
>>
>>> On Fri, 2010-09-10 at 10:52 +0200, Tejun Heo wrote:
>>>> Percpu allocator should clear memory before returning it