summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorZhipeng Lu <alexious@zju.edu.cn>2024-01-22 20:24:42 +0300
committerJakub Kicinski <kuba@kernel.org>2024-01-25 05:03:53 +0300
commitf6cc4b6a3ae53df425771000e9c9540cce9b7bb1 (patch)
treee26e8e07ee5c5e37ac6fd21a36f6aa495db0253d /tools/perf/scripts/python/export-to-sqlite.py
parent77be22473b28f0538d69d58f64d35091095688cd (diff)
downloadlinux-f6cc4b6a3ae53df425771000e9c9540cce9b7bb1.tar.xz
fjes: fix memleaks in fjes_hw_setup
In fjes_hw_setup, it allocates several memory and delay the deallocation to the fjes_hw_exit in fjes_probe through the following call chain: fjes_probe |-> fjes_hw_init |-> fjes_hw_setup |-> fjes_hw_exit However, when fjes_hw_setup fails, fjes_hw_exit won't be called and thus all the resources allocated in fjes_hw_setup will be leaked. In this patch, we free those resources in fjes_hw_setup and prevents such leaks. Fixes: 2fcbca687702 ("fjes: platform_driver's .probe and .remove routine") Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/20240122172445.3841883-1-alexious@zju.edu.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions