summaryrefslogtreecommitdiffstats
path: root/kernel/sched/core.c
diff options
context:
space:
mode:
authorMathieu Poirier <mathieu.poirier@linaro.org>2017-01-24 14:11:34 -0700
committerIngo Molnar <mingo@kernel.org>2017-01-30 11:46:36 +0100
commit92c99ac829931abba33107e09358447c8ad6bd32 (patch)
tree65f47d6a54b63758f67bf159a76af55ac8343e30 /kernel/sched/core.c
parent4d25b35ea3729affd37d69c78191ce6f92766e1a (diff)
downloadlinux-stable-92c99ac829931abba33107e09358447c8ad6bd32.tar.gz
linux-stable-92c99ac829931abba33107e09358447c8ad6bd32.tar.bz2
linux-stable-92c99ac829931abba33107e09358447c8ad6bd32.zip
sched/core: Fix &rd->rto_mask memory leak
If function cpudl_init() fails the memory allocated for &rd->rto_mask needs to be freed, something this patch is addressing. 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-1-git-send-email-mathieu.poirier@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r--kernel/sched/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 3b248b03ad8f..17d1df6e2dbb 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5976,7 +5976,7 @@ static int init_rootdomain(struct root_domain *rd)
init_dl_bw(&rd->dl_bw);
if (cpudl_init(&rd->cpudl) != 0)
- goto free_dlo_mask;
+ goto free_rto_mask;
if (cpupri_init(&rd->cpupri) != 0)
goto free_rto_mask;