aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-05-27 10:48:50 +0000
committerMark Brown <broonie@kernel.org>2026-06-02 16:06:18 +0100
commitfa11039d6cdff84584a3ef8cc1f5e1b56e045da2 (patch)
treee3541b34dc1faba593e5334d7b453978ff0a48fc /include/linux
parentb282e237ee4c3b0cbab762ef2e9a08a5d4a21b6d (diff)
regulator: scmi: fix of_node refcount leak in scmi_regulator_probe()
scmi_regulator_probe() calls of_find_node_by_name() which takes a reference on the returned device node. On the error path where process_scmi_regulator_of_node() fails, the function returns without calling of_node_put() on the child node, leaking the reference. Add of_node_put(np) on the error path to properly release the reference. Cc: stable@vger.kernel.org Fixes: 0fbeae70ee7c ("regulator: add SCMI driver") Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Link: https://patch.msgid.link/20260527104850.872415-1-vulab@iscas.ac.cn Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions