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

bbc_envctrl: Clean up properly if kthread_run() fails.



In bbc_envctrl_init() we have to unlink the fan and temp instances
from the lists because our caller is going to free up the 'bp' object
if we return an error.

We can't rely upon bbc_envctrl_cleanup() to do this work for us in
this case.

Reported-by: default avatarPatrick Finnegan <pat@computer-refuge.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7466bd3c
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