diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-05-27 08:44:14 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-06-08 23:29:48 +0100 |
commit | 06118ae36855b7d3d22688298e74a766ccf0cb7a (patch) | |
tree | 3cca72e4e8b6a981ff6a91ab3ef3be40f5e10fa1 /scripts/module-common.c | |
parent | 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff) |
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: 6b0cd72757c6 ("regulator: max20086: fix invalid memory access")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aDVRLqgJWMxYU03G@stanley.mountain
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/module-common.c')
0 files changed, 0 insertions, 0 deletions