Skip to content
Commit 1605b847 authored by Herbert Xu's avatar Herbert Xu
Browse files

[CRYPTO] cryptomgr: Fix use after free



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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent f6259dea
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment