提交 b0f1779a 编写于 作者: A Akinobu Mita 提交者: Martin Schwidefsky

[S390] Check the return value of kthread_run().

Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 2b67fc46
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册