aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2024-06-06 10:37:04 +0800
committerLinus Walleij <[email protected]>2024-06-17 10:33:30 +0200
commit9b401f4a7170125365160c9af267a41ff6b39001 (patch)
tree709c7d20c1d564bc6c6f50dbd2123822b00dfa6e /tools/perf/util/trace-event-scripting.c
parent8f773bfbdd428819328a2d185976cfc6ae811cd3 (diff)
pinctrl: ti: ti-iodelay: fix possible memory leak when pinctrl_enable() fails
This driver calls pinctrl_register_and_init() which is not devm_ managed, it will leads memory leak if pinctrl_enable() fails. Replace it with devm_pinctrl_register_and_init(). And add missing of_node_put() in the error path. Fixes: 5038a66dad01 ("pinctrl: core: delete incorrect free in pinctrl_enable()") Signed-off-by: Yang Yingliang <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions