aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorruanjinjie <ruanjinjie@huawei.com>2022-11-17 14:47:25 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-23 19:55:26 +0100
commitfd2c930cf6a5b9176382c15f9acb1996e76e25ad (patch)
tree6f42ca08b5108900284b34a79ab2c536381e6a69 /tools/perf/scripts/python/export-to-postgresql.py
parent1dbb4f0235a450f22e518124cbf9b922802ce38f (diff)
misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()
If device_register() returns error in tifm_7xx1_switch_media(), name of kobject which is allocated in dev_set_name() called in device_add() is leaked. Never directly free @dev after calling device_register(), even if it returned an error! Always use put_device() to give up the reference initialized. Fixes: 2428a8fe2261 ("tifm: move common device management tasks from tifm_7xx1 to tifm_core") Signed-off-by: ruanjinjie <ruanjinjie@huawei.com> Link: https://lore.kernel.org/r/20221117064725.3478402-1-ruanjinjie@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions