[PATCH] ipmi: missing NULL test for kthread
authorMatt Domsch <Matt_Domsch@dell.com>
Fri, 18 Nov 2005 09:10:54 +0000 (01:10 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 18 Nov 2005 15:49:45 +0000 (07:49 -0800)
commit44f080c46e84090daf81b4d142359f8e38d7c5ee
tree7f2cd28f932bba32c0c28a7c20983c9167f4667e
parent58bb01a9cd72eebf60d00c57b948a76aa7b85727
[PATCH] ipmi: missing NULL test for kthread

On IPMI systems with BT interfaces, we don't start the kernel thread, so
smi_info->thread is NULL.  Test for NULL when stopping the thread, because
kthread_stop() doesn't, and an oops ensues otherwise.

Signed-off-by: Matt Domsch <Matt_Domsch@dell.com>
Acked-by: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/ipmi/ipmi_si_intf.c