padata: Fix race in the serialization path
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 9 Mar 2012 06:20:12 +0000 (07:20 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Mar 2012 09:25:56 +0000 (17:25 +0800)
commit3047817b894ddae62be07787bc8735a616104398
treee5eac5f11bb0c34a80224a62892f72a240eb1659
parent0b95ec56ae19f61ca664e83766a2180057f0e351
padata: Fix race in the serialization path

When a padata object is queued to the serialization queue, another
cpu might process and free the padata object. So don't dereference
it after queueing to the serialization queue.

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