diff options
Diffstat (limited to 'mm/percpu.c')
-rw-r--r-- | mm/percpu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 083e7c91e5f6..841defeeef86 100644 --- a/mm/percpu.c +++ b/mm/percpu.c | |||
@@ -1929,7 +1929,10 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, ssize_t dyn_size, | |||
1929 | } | 1929 | } |
1930 | /* copy and return the unused part */ | 1930 | /* copy and return the unused part */ |
1931 | memcpy(ptr, __per_cpu_load, ai->static_size); | 1931 | memcpy(ptr, __per_cpu_load, ai->static_size); |
1932 | #ifndef CONFIG_NO_BOOTMEM | ||
1933 | /* fix partial free ! */ | ||
1932 | free_fn(ptr + size_sum, ai->unit_size - size_sum); | 1934 | free_fn(ptr + size_sum, ai->unit_size - size_sum); |
1935 | #endif | ||
1933 | } | 1936 | } |
1934 | } | 1937 | } |
1935 | 1938 | ||