From: Akinobu Mita Date: Mon, 5 Feb 2007 20:16:49 +0000 (+0100) Subject: [S390] Check the return value of kthread_run(). X-Git-Tag: v2.6.21-rc1~92^2~41^2~34 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0f1779a878cf15b07181ef31394ecd33b40c470;p=linux-2.6 [S390] Check the return value of kthread_run(). Signed-off-by: Akinobu Mita Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/s390mach.c b/drivers/s390/s390mach.c index 1d084691e7..442d634704 100644 --- a/drivers/s390/s390mach.c +++ b/drivers/s390/s390mach.c @@ -525,7 +525,11 @@ arch_initcall(machine_check_init); static int __init machine_check_crw_init (void) { - kthread_run(s390_collect_crw_info, &m_sem, "kmcheck"); + struct task_struct *task; + + task = kthread_run(s390_collect_crw_info, &m_sem, "kmcheck"); + if (IS_ERR(task)) + return PTR_ERR(task); ctl_set_bit(14, 28); /* enable channel report MCH */ return 0; }