From c98c0e830383ab698322c2cd0f6ab0861e85f962 Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Thu, 24 Sep 2009 18:50:34 +0900 Subject: [PATCH] --- yaml --- r: 166511 b: refs/heads/master c: fb59e72e7e10fd9d31f4e522f1b28254c2cc8a6c h: refs/heads/master i: 166509: b70c9342d3465efe3a9a72d8f28e36c8f225a5f3 166507: adacb9a5e9d23333a1cbc0db280473225a88ceec 166503: 2ea78bf08a2efa149f3c311b8e44f4a628926416 166495: 584c44b78e9dc6cbd62d960a747a41fec4256e77 v: v3 --- [refs] | 2 +- trunk/mm/percpu.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 2b7f8a4aff7e..28b32bdb8402 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ffe0d5a575459ffe664b0762130b557f826fcace +refs/heads/master: fb59e72e7e10fd9d31f4e522f1b28254c2cc8a6c diff --git a/trunk/mm/percpu.c b/trunk/mm/percpu.c index e5c4cbda6026..a64133f8af45 100644 --- a/trunk/mm/percpu.c +++ b/trunk/mm/percpu.c @@ -1347,6 +1347,10 @@ struct pcpu_alloc_info * __init pcpu_build_alloc_info( struct pcpu_alloc_info *ai; unsigned int *cpu_map; + /* this function may be called multiple times */ + memset(group_map, 0, sizeof(group_map)); + memset(group_cnt, 0, sizeof(group_map)); + /* * Determine min_unit_size, alloc_size and max_upa such that * alloc_size is multiple of atom_size and is the smallest