From: David S. Miller Date: Fri, 17 Jul 2009 17:28:19 +0000 (-0700) Subject: sparc: Fix cleanup crash in bbc_envctrl_cleanup() X-Git-Tag: v2.6.31-rc8~28^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14d87e6c399f3942d63dff41447ff08a615d9a6b;p=pandora-kernel.git 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: BERTRAND Joël Signed-off-by: David S. Miller --- Reading git-diff-tree failed