From: David S. Miller Date: Mon, 4 Jan 2010 23:31:10 +0000 (-0800) Subject: bbc_envctrl: Clean up properly if kthread_run() fails. X-Git-Tag: v2.6.33-rc3~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7c17c2779075e675cb3c7fe2ecde67e226771fb;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed