aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorUmang Jain <[email protected]>2024-10-16 18:32:24 +0530
committerGreg Kroah-Hartman <[email protected]>2024-10-19 10:04:57 +0200
commit404b739e895522838f1abdc340c554654d671dde (patch)
tree878190c831f3933f1353d9bccfcac4773711683e /tools/perf/util/scripting-engines/trace-event-python.c
parent8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b (diff)
staging: vchiq_arm: Use devm_kzalloc() for vchiq_arm_state allocation
The struct vchiq_arm_state 'platform_state' is currently allocated dynamically using kzalloc(). Unfortunately, it is never freed and is subjected to memory leaks in the error handling paths of the probe() function. To address the issue, use device resource management helper devm_kzalloc(), to ensure cleanup after its allocation. Fixes: 71bad7f08641 ("staging: add bcm2708 vchiq driver") Cc: [email protected] Signed-off-by: Umang Jain <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions