Files
linux/drivers/regulator
Dan Carpenter 06118ae368 regulator: max20086: Fix refcount leak in max20086_parse_regulators_dt()
There is a missing call to of_node_put() if devm_kcalloc() fails.
Fix this by changing the code to use cleanup.h magic to drop the
refcount.

Fixes: 6b0cd72757 ("regulator: max20086: fix invalid memory access")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://patch.msgid.link/[email protected]
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
2025-06-08 23:29:48 +01:00
..
2025-02-28 16:33:32 +00:00
…
2024-09-10 12:40:38 +01:00
…