diff options
-rw-r--r-- | mm/percpu.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index efe816856a9..9e16d1c9ebd 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -293,12 +293,8 @@ static void *pcpu_mem_alloc(size_t size) if (size <= PAGE_SIZE) return kzalloc(size, GFP_KERNEL); - else { - void *ptr = vmalloc(size); - if (ptr) - memset(ptr, 0, size); - return ptr; - } + else + return vzalloc(size); } /** |