summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-05-05 14:28:48 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-05 14:28:48 -0700
commit70c9fb570b7c1c3edb03cbe745cf81ceeef5d484 (patch)
treed002b8a9d94f2b81b0f9aa7821db49cfa7686e0d
parent13369e831173251e2bc3bc2a78f67c387e8d9609 (diff)
parent9a4f26cc98d81b67ecc23b890c28e2df324e29f3 (diff)
downloadlinux-70c9fb570b7c1c3edb03cbe745cf81ceeef5d484.tar.bz2
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fix from Ingo Molnar: "Fix a kobject memory leak in the cpufreq code" * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: sched/cpufreq: Fix kobject memleak
-rw-r--r--kernel/sched/cpufreq_schedutil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c
index 5c41ea367422..3638d2377e3c 100644
--- a/kernel/sched/cpufreq_schedutil.c
+++ b/kernel/sched/cpufreq_schedutil.c
@@ -771,6 +771,7 @@ out:
return 0;
fail:
+ kobject_put(&tunables->attr_set.kobj);
policy->governor_data = NULL;
sugov_tunables_free(tunables);