Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b0f1779a878cf15b07181ef31394ecd33b40c470 Commit: b0f1779a878cf15b07181ef31394ecd33b40c470 Parent: 2b67fc46061b2171fb8fbb55d1ac717abd533569 Author: Akinobu Mita <[EMAIL PROTECTED]> AuthorDate: Mon Feb 5 21:16:49 2007 +0100 Committer: Martin Schwidefsky <[EMAIL PROTECTED]> CommitDate: Mon Feb 5 21:16:49 2007 +0100
[S390] Check the return value of kthread_run(). Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]> Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]> --- drivers/s390/s390mach.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drivers/s390/s390mach.c b/drivers/s390/s390mach.c index 1d08469..442d634 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; } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html