Skip to content

Commit

Permalink
sched/autogroup: Fix error reporting printk text in autogroup_create()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anshuman Khandual authored and Ingo Molnar committed Aug 10, 2017
1 parent 90001d6 commit 1e58565
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/sched/autogroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -101,7 +100,7 @@ static inline struct autogroup *autogroup_create(void)
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);
Expand Down

0 comments on commit 1e58565

Please sign in to comment.