From: Matt Domsch 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 Acked-by: Corey Minyard Signed-off-by: Andrew Morton --- drivers/char/ipmi/ipmi_si_intf.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/char/ipmi/ipmi_si_intf.c~ipmi-missing-null-test-for-kthread drivers/char/ipmi/ipmi_si_intf.c --- devel/drivers/char/ipmi/ipmi_si_intf.c~ipmi-missing-null-test-for-kthread 2005-11-16 18:12:19.000000000 -0800 +++ devel-akpm/drivers/char/ipmi/ipmi_si_intf.c 2005-11-16 18:12:19.000000000 -0800 @@ -2203,7 +2203,7 @@ static void setup_xaction_handlers(struc static inline void wait_for_timer_and_thread(struct smi_info *smi_info) { - if (smi_info->thread != ERR_PTR(-ENOMEM)) + if (smi_info->thread != NULL && smi_info->thread != ERR_PTR(-ENOMEM)) kthread_stop(smi_info->thread); del_timer_sync(&smi_info->si_timer); } _