diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cpumask.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cpumask.c b/lib/cpumask.c index 2ebc3a9a7465..8d03f22c6ced 100644 --- a/lib/cpumask.c +++ b/lib/cpumask.c | |||
@@ -67,6 +67,7 @@ int cpumask_any_but(const struct cpumask *mask, unsigned int cpu) | |||
67 | { | 67 | { |
68 | unsigned int i; | 68 | unsigned int i; |
69 | 69 | ||
70 | cpumask_check(cpu); | ||
70 | for_each_cpu(i, mask) | 71 | for_each_cpu(i, mask) |
71 | if (i != cpu) | 72 | if (i != cpu) |
72 | break; | 73 | break; |
@@ -108,7 +109,7 @@ void free_cpumask_var(cpumask_var_t mask) | |||
108 | } | 109 | } |
109 | EXPORT_SYMBOL(free_cpumask_var); | 110 | EXPORT_SYMBOL(free_cpumask_var); |
110 | 111 | ||
111 | void free_bootmem_cpumask_var(cpumask_var_t mask) | 112 | void __init free_bootmem_cpumask_var(cpumask_var_t mask) |
112 | { | 113 | { |
113 | free_bootmem((unsigned long)mask, cpumask_size()); | 114 | free_bootmem((unsigned long)mask, cpumask_size()); |
114 | } | 115 | } |