Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0f1779a authored by Akinobu Mita's avatar Akinobu Mita Committed by Martin Schwidefsky
Browse files

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

parent 2b67fc46
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;
}