Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.6.25-git19 /mm/allocpercpu.c

Filename:/mm/allocpercpu.c
Lines Added:2
Lines Deleted:1
Also changed in: (Previous) 2.6.25-git18  2.6.25-git17  2.6.25-git16  2.6.25-git15  2.6.25-git14  2.6.25-git13 
(Following) 2.6.25-git20  2.6.26-rc1  2.6.26-rc2  2.6.26-rc3  2.6.26-rc4  2.6.26-rc5 

Location
[  2.6.25-git19
  [  mm
     o  allocpercpu.c

Patch

diff --git a/mm/allocpercpu.c b/mm/allocpercpu.c
index b0012e2..f4026ba 100644
--- a/mm/allocpercpu.c
+++ b/mm/allocpercpu.c
@@ -82,9 +82,10 @@ EXPORT_SYMBOL_GPL(percpu_populate);
 int __percpu_populate_mask(void *__pdata, size_t size, gfp_t gfp,
             cpumask_t *mask)
 {
-   cpumask_t populated = CPU_MASK_NONE;
+   cpumask_t populated;
    int cpu;
 
+   cpus_clear(populated);
    for_each_cpu_mask(cpu, *mask)
       if (unlikely(!percpu_populate(__pdata, size, gfp, cpu))) {
          __percpu_depopulate_mask(__pdata, &populated);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.