summaryrefslogtreecommitdiffstats
path: root/fs/fat
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2019-04-30 11:35:52 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-31 06:47:19 -0700
commitf52536d95bee3430ba290741e929e5d65424915f (patch)
tree2a72da1bc8d7bfbd4445e6365fb8e7f938c81b11 /fs/fat
parenta234e0d8b473153030dbd8adf0f8340a53ec7936 (diff)
downloadlinux-stable-f52536d95bee3430ba290741e929e5d65424915f.tar.gz
linux-stable-f52536d95bee3430ba290741e929e5d65424915f.tar.bz2
linux-stable-f52536d95bee3430ba290741e929e5d65424915f.zip
sched/cpufreq: Fix kobject memleak
[ Upstream commit 9a4f26cc98d81b67ecc23b890c28e2df324e29f3 ] Currently the error return path from kobject_init_and_add() is not followed by a call to kobject_put() - which means we are leaking the kobject. Fix it by adding a call to kobject_put() in the error path of kobject_init_and_add(). Signed-off-by: Tobin C. Harding <tobin@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tobin C. Harding <tobin@kernel.org> Cc: Vincent Guittot <vincent.guittot@linaro.org> Cc: Viresh Kumar <viresh.kumar@linaro.org> Link: http://lkml.kernel.org/r/20190430001144.24890-1-tobin@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/fat')
0 files changed, 0 insertions, 0 deletions