]> git.baikalelectronics.ru Git - kernel.git/commit
bbc_envctrl: Clean up properly if kthread_run() fails.
authorDavid S. Miller <davem@davemloft.net>
Mon, 4 Jan 2010 23:31:10 +0000 (15:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jan 2010 23:31:10 +0000 (15:31 -0800)
commit345c457f3214cc552d299ccf61c74ef75f90af6e
tree680ab98f6f9b2275b7140f73a3c3a842062a7e93
parentfc6cdcc7b933b5b6b242bd1881f3ffdb46370461
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: Patrick Finnegan <pat@computer-refuge.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/bbc_envctrl.c