diff options
| author | WenTao Liang <vulab@iscas.ac.cn> | 2026-06-27 00:03:26 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-07-02 18:48:28 +0100 |
| commit | 7c8cc25d8d86f9eb3979255935cfdc7d062ad746 (patch) | |
| tree | 87e14bcb89c923abad91ad0b76263b141ebef0a7 /drivers/regulator/Makefile | |
| parent | f9324d670ae0b88cbfb0aa48fcaefa5baeb8da4c (diff) | |
| download | linux-next-7c8cc25d8d86f9eb3979255935cfdc7d062ad746.tar.gz linux-next-7c8cc25d8d86f9eb3979255935cfdc7d062ad746.zip | |
regulator: max8998_pmic_dt_parse_pdata: of_node_put on reg_np after ownership transferred to rdata
In max8998_pmic_dt_parse_pdata(), of_get_child_by_name() acquires a
reference on reg_np which is then stored in rdata->reg_node, transferring
ownership to the regulator data array. The subsequent of_node_put(reg_np)
at the end of the function releases the last matched regulator node's
reference, leaving rdata->reg_node as a dangling pointer for the last
entry.
Remove the spurious of_node_put(reg_np) call.
Cc: stable@vger.kernel.org
Fixes: 156f252857df ("drivers: regulator: add Maxim 8998 driver")
Signed-off-by: WenTao Liang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20260626160326.54457-1-vulab@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/Makefile')
0 files changed, 0 insertions, 0 deletions
