Re: [PATCH v2] smpboot: Check for successfull allocation of cpumask vars

2014-12-12 Thread David Rientjes
On Tue, 9 Dec 2014, Pranith Kumar wrote: > diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c > index 7a8f584..35bc3f1 100644 > --- a/arch/x86/kernel/smpboot.c > +++ b/arch/x86/kernel/smpboot.c > @@ -1083,6 +1083,7 @@ static void __init smp_cpu_index_default(void) > void __init na

[PATCH v2] smpboot: Check for successfull allocation of cpumask vars

2014-12-09 Thread Pranith Kumar
zalloc_cpumask_var() can return 0 on allocation failure when CONFIG_CPUMASK_OFFSTACK is set. Check for the return value and warn on failure of an allocation in such cases. Also remove the cpus from cpu masks so that they are not accessed later on. Signed-off-by: Pranith Kumar --- arch/x86/kernel