Skip to content
Commit 14d87e6c authored by David S. Miller's avatar David S. Miller
Browse files

sparc: Fix cleanup crash in bbc_envctrl_cleanup()



If kthread_run() fails or never gets to run we'll have NULL
or a pointer encoded error in kenvctrld_task, rather than
a legitimate task pointer.

So this makes bbc_envctrl_cleanup() crash as it passed this
bogus pointer into kthread_stop().

Reported-by: default avatarBERTRAND Joël <joel.bertrand@systella.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8944146d
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