From: Anshuman Khandual Date: Wed, 2 Aug 2017 08:43:00 +0000 (+0530) Subject: sched/autogroup: Fix error reporting printk text in autogroup_create() X-Git-Tag: v5.15~10557^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e58565e6d147751d85ee9e692d1226059b3318f;p=platform%2Fkernel%2Flinux-starfive.git sched/autogroup: Fix error reporting printk text in autogroup_create() Its kzalloc() not kmalloc() which has failed earlier. While here remove a redundant empty line. Signed-off-by: Anshuman Khandual Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-mm@kvack.org Link: http://lkml.kernel.org/r/20170802084300.29487-1-khandual@linux.vnet.ibm.com Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched/autogroup.c b/kernel/sched/autogroup.c index da39489..de6d7f4 100644 --- a/kernel/sched/autogroup.c +++ b/kernel/sched/autogroup.c @@ -71,7 +71,6 @@ static inline struct autogroup *autogroup_create(void) goto out_fail; tg = sched_create_group(&root_task_group); - if (IS_ERR(tg)) goto out_free; @@ -101,7 +100,7 @@ out_free: out_fail: if (printk_ratelimit()) { printk(KERN_WARNING "autogroup_create: %s failure.\n", - ag ? "sched_create_group()" : "kmalloc()"); + ag ? "sched_create_group()" : "kzalloc()"); } return autogroup_kref_get(&autogroup_default);