diff options
Diffstat (limited to 'lib/cpumask.c')
-rw-r--r-- | lib/cpumask.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/cpumask.c b/lib/cpumask.c index 087a3e9a0202..0cb672eb107c 100644 --- a/lib/cpumask.c +++ b/lib/cpumask.c | |||
@@ -165,6 +165,9 @@ EXPORT_SYMBOL(zalloc_cpumask_var); | |||
165 | void __init alloc_bootmem_cpumask_var(cpumask_var_t *mask) | 165 | void __init alloc_bootmem_cpumask_var(cpumask_var_t *mask) |
166 | { | 166 | { |
167 | *mask = memblock_alloc(cpumask_size(), SMP_CACHE_BYTES); | 167 | *mask = memblock_alloc(cpumask_size(), SMP_CACHE_BYTES); |
168 | if (!*mask) | ||
169 | panic("%s: Failed to allocate %u bytes\n", __func__, | ||
170 | cpumask_size()); | ||
168 | } | 171 | } |
169 | 172 | ||
170 | /** | 173 | /** |