[CRYPTO] cryptomgr: Fix use after free
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 9 May 2007 03:04:39 +0000 (13:04 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 9 May 2007 03:04:39 +0000 (13:04 +1000)
By the time kthread_run returns the param may have already been freed
so writing the returned thread_struct pointer to param is wrong.

In fact, we don't need it in param anyway so this patch simply puts it
on the stack.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

No differences found