Commit 02f58f97 authored by Javier Carrasco's avatar Javier Carrasco Committed by Lee Jones
Browse files

leds: max5970: Fix unreleased fwnode_handle in probe function



An object initialized via device_get_named_child_node() requires calls
to fwnode_handle_put() when it is no longer required to avoid leaking
memory.

Add the automatic cleanup facility for 'led_node' to ensure that
fwnode_handle_put() is called in all execution paths.

Fixes: 736214b4 ("leds: max5970: Add support for max5970")
Signed-off-by: default avatarJavier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20241031-max5970-of_node_put-v2-1-0ffe1f1d3bc9@gmail.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 32360bf6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment