diff options
author | Tobin C. Harding <[email protected]> | 2019-04-30 10:11:44 +1000 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-04-30 07:57:23 +0200 |
commit | 9a4f26cc98d81b67ecc23b890c28e2df324e29f3 (patch) | |
tree | d121e33139a3a521e51a595d86675f108f3cb945 /scripts/gcc-plugins/gcc-common.h | |
parent | 37624b58542fb9f2d9a70e6ea006ef8a5f66c30b (diff) |
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 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions