aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/vmalloc.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2025-05-27 05:44:14 +0000
committerMark Brown <[email protected]>2025-06-08 22:29:48 +0000
commit06118ae36855b7d3d22688298e74a766ccf0cb7a (patch)
tree3cca72e4e8b6a981ff6a91ab3ef3be40f5e10fa1 /rust/helpers/vmalloc.c
parentLinux 6.16-rc1 (diff)
downloadkernel-06118ae36855b7d3d22688298e74a766ccf0cb7a.tar.gz
kernel-06118ae36855b7d3d22688298e74a766ccf0cb7a.zip
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions