aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/s390mach.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2007-02-05 15:16:49 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-02-05 15:16:49 -0500
commitb0f1779a878cf15b07181ef31394ecd33b40c470 (patch)
tree3525c4b995267d6c0969c8bdb1c2d75806ac6d0b /drivers/s390/s390mach.c
parent2b67fc46061b2171fb8fbb55d1ac717abd533569 (diff)
[S390] Check the return value of kthread_run().
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/s390mach.c')
-rw-r--r--drivers/s390/s390mach.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/s390/s390mach.c b/drivers/s390/s390mach.c
index 1d084691e71e..442d63470428 100644
--- a/drivers/s390/s390mach.c
+++ b/drivers/s390/s390mach.c
@@ -525,7 +525,11 @@ arch_initcall(machine_check_init);
525static int __init 525static int __init
526machine_check_crw_init (void) 526machine_check_crw_init (void)
527{ 527{
528 kthread_run(s390_collect_crw_info, &m_sem, "kmcheck"); 528 struct task_struct *task;
529
530 task = kthread_run(s390_collect_crw_info, &m_sem, "kmcheck");
531 if (IS_ERR(task))
532 return PTR_ERR(task);
529 ctl_set_bit(14, 28); /* enable channel report MCH */ 533 ctl_set_bit(14, 28); /* enable channel report MCH */
530 return 0; 534 return 0;
531} 535}