aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_printf.c
diff options
context:
space:
mode:
authorTobin C. Harding <[email protected]>2019-04-30 00:11:44 +0000
committerIngo Molnar <[email protected]>2019-04-30 05:57:23 +0000
commit9a4f26cc98d81b67ecc23b890c28e2df324e29f3 (patch)
treed121e33139a3a521e51a595d86675f108f3cb945 /lib/test_printf.c
parentLinux 5.1-rc7 (diff)
downloadkernel-9a4f26cc98d81b67ecc23b890c28e2df324e29f3.tar.gz
kernel-9a4f26cc98d81b67ecc23b890c28e2df324e29f3.zip
sched/cpufreq: Fix kobject memleak
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 <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rafael J. Wysocki <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Tobin C. Harding <[email protected]> Cc: Vincent Guittot <[email protected]> Cc: Viresh Kumar <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions