sched/autogroup: Fix error reporting printk text in autogroup_create()
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Wed, 2 Aug 2017 08:43:00 +0000 (14:13 +0530)
committerIngo Molnar <mingo@kernel.org>
Thu, 10 Aug 2017 15:06:03 +0000 (17:06 +0200)
Its kzalloc() not kmalloc() which has failed earlier. While here
remove a redundant empty line.

Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/20170802084300.29487-1-khandual@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/autogroup.c

index da39489d2d80e9b8f6781610e97c23ec0014f45b..de6d7f4dfcb52ce4f7386b052b5ded37a9f30054 100644 (file)
@@ -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);