padata: Allocate cpumask dependend recources in any case
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 20 Jul 2010 06:49:20 +0000 (08:49 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 26 Jul 2010 06:13:58 +0000 (14:13 +0800)
commitb89661dff525a46edb7ee8a4423b5212068c05c0
tree06f669f3efe74d37a546b8e75b3a5bd142a6a41f
parentfad3a906d324c02b3c25ef51f702384154089846
padata: Allocate cpumask dependend recources in any case

The cpumask separation work assumes the cpumask dependend recources
present regardless of valid or invalid cpumasks. With this patch
we allocate the cpumask dependend recources in any case. This fixes
two NULL pointer dereference crashes in padata_replace and in
padata_get_cpumask.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kernel/padata.c