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

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

Advertisement

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

Filename:/mm/allocpercpu.c
Lines Added:2
Lines Deleted:1
Also changed in: (Previous) 2.6.25-git7  2.6.25-git6  2.6.25-git5  2.6.25-git4  2.6.25-git3  2.6.25 
(Following) 2.6.25-git9  2.6.25-git10  2.6.25-git11  2.6.25-git12  2.6.25-git13  2.6.25-git14 

Location
[  2.6.25-git8
  [  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.