mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] sched/core: Fix &rd->rto_mask memory leak
@ 2017-01-24 21:11 Mathieu Poirier
  2017-01-24 21:11 ` [PATCH 2/2] sched/core: Fix &rd->cpudl " Mathieu Poirier
  2017-01-30 11:56 ` [tip:sched/core] sched/core: Fix &rd->rto_mask " tip-bot for Mathieu Poirier
  0 siblings, 2 replies; 4+ messages in thread
From: Mathieu Poirier @ 2017-01-24 21:11 UTC (permalink / raw)
  To: mingo, peterz; +Cc: linux-kernel

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>
---
 kernel/sched/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index c56fb57f2991..5c01ac0f915a 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5881,7 +5881,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;
-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-30 11:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-24 21:11 [PATCH 1/2] sched/core: Fix &rd->rto_mask memory leak Mathieu Poirier
2017-01-24 21:11 ` [PATCH 2/2] sched/core: Fix &rd->cpudl " Mathieu Poirier
2017-01-30 11:56   ` [tip:sched/core] " tip-bot for Mathieu Poirier
2017-01-30 11:56 ` [tip:sched/core] sched/core: Fix &rd->rto_mask " tip-bot for Mathieu Poirier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome