Commit 92c99ac8 authored by Mathieu Poirier's avatar Mathieu Poirier Committed by Ingo Molnar

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: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarPeter 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.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 4d25b35e
...@@ -5976,7 +5976,7 @@ static int init_rootdomain(struct root_domain *rd) ...@@ -5976,7 +5976,7 @@ static int init_rootdomain(struct root_domain *rd)
init_dl_bw(&rd->dl_bw); init_dl_bw(&rd->dl_bw);
if (cpudl_init(&rd->cpudl) != 0) if (cpudl_init(&rd->cpudl) != 0)
goto free_dlo_mask; goto free_rto_mask;
if (cpupri_init(&rd->cpupri) != 0) if (cpupri_init(&rd->cpupri) != 0)
goto free_rto_mask; goto free_rto_mask;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment