diff options
| author | Dan Carpenter <[email protected]> | 2025-05-27 05:44:14 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2025-06-08 22:29:48 +0000 |
| commit | 06118ae36855b7d3d22688298e74a766ccf0cb7a (patch) | |
| tree | 3cca72e4e8b6a981ff6a91ab3ef3be40f5e10fa1 /lib/crypto/mpi/mpi-mul.c | |
| parent | Linux 6.16-rc1 (diff) | |
| download | kernel-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 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions
