summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWenTao Liang <vulab@iscas.ac.cn>2026-06-27 00:01:50 +0800
committerMark Brown <broonie@kernel.org>2026-07-02 17:18:25 +0100
commitf9324d670ae0b88cbfb0aa48fcaefa5baeb8da4c (patch)
treebca66de2511114d8595235429df9fbe126645659 /tools/perf/scripts/python
parent7fd28093b3effc4f92566466df364622830ec608 (diff)
regulator: as3722_get_regulator_dt_data: fix premature of_node_put leaving dangling of_node pointer
In as3722_get_regulator_dt_data(), of_get_child_by_name() acquires a reference on np, which is then assigned to pdev->dev.of_node. The function immediately calls of_node_put(np), releasing the reference and leaving pdev->dev.of_node as a dangling pointer. Remove the of_node_put(np) call to let the device hold the reference. Cc: stable@vger.kernel.org Fixes: bc407334e9a6 ("regulator: as3722: add regulator driver for AMS AS3722") Signed-off-by: WenTao Liang <vulab@iscas.ac.cn> Link: https://patch.msgid.link/20260626160150.54291-1-vulab@iscas.ac.cn Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions