sched/core: Fix &rd->cpudl memory leak
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 24 Jan 2017 21:11:35 +0000 (14:11 -0700)
committerIngo Molnar <mingo@kernel.org>
Mon, 30 Jan 2017 10:46:37 +0000 (11:46 +0100)
commit4b12db939166042eb78e592bdf94ef113c14e379
treef2bf11b78cc72503f6925a6e1ee47a55632ae3de
parent92c99ac829931abba33107e09358447c8ad6bd32
sched/core: Fix &rd->cpudl memory leak

While in the process of initialising a root domain, if function
cpupri_init() fails the memory allocated in cpudl_init() is not
reclaimed.

Adding a new goto target to cleanup the previous initialistion of
the root_domain's dl_bw structure reclaims said memory.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1485292295-21298-2-git-send-email-mathieu.poirier@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c