sched/core: Fix &rd->rto_mask memory leak
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 24 Jan 2017 21:11:34 +0000 (14:11 -0700)
committerIngo Molnar <mingo@kernel.org>
Mon, 30 Jan 2017 10:46:36 +0000 (11:46 +0100)
commit92c99ac829931abba33107e09358447c8ad6bd32
tree65f47d6a54b63758f67bf159a76af55ac8343e30
parent4d25b35ea3729affd37d69c78191ce6f92766e1a
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>
kernel/sched/core.c