]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sparc: Fix cleanup crash in bbc_envctrl_cleanup()
authorDavid S. Miller <davem@davemloft.net>
Fri, 17 Jul 2009 17:28:19 +0000 (10:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jul 2009 17:28:19 +0000 (10:28 -0700)
commit14d87e6c399f3942d63dff41447ff08a615d9a6b
treecb2c1c18a791c79f51cb9ea7516287f9b2394f97
parent8944146daa2c38dd85bc489d1b84fb9abc108837
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 <joel.bertrand@systella.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/bbc_envctrl.c