aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2024-06-11 00:40:26 +0200
committerLee Jones <[email protected]>2024-06-26 16:56:10 +0100
commite41d574b359ccd8d99be65c6f11502efa2b83136 (patch)
tree74a17626e0fefe00ec17574abc93d4d98b54695a /lib/memory-notifier-error-inject.c
parent8d89afc6359c228c51087d90a4a72af2ea95140c (diff)
leds: mt6360: Fix memory leak in mt6360_init_isnk_properties()
The fwnode_for_each_child_node() loop requires manual intervention to decrement the child refcount in case of an early return. Add the missing calls to fwnode_handle_put(child) to avoid memory leaks in the error paths. Cc: [email protected] Fixes: 679f8652064b ("leds: Add mt6360 driver") Signed-off-by: Javier Carrasco <[email protected]> Acked-by: Pavel Machek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions