]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitd8d1e6970dc8965fed33ff822e9d5a509cfd4d07
tree7f2cd28f932bba32c0c28a7c20983c9167f4667e
parentc2f006050c7e91ce476336b6678867a34d4c0f7e
[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