diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-11-15 17:15:08 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-11-15 10:36:15 +0000 |
commit | f2b41b748c19962b82709d9f23c6b2b0ce9d2f91 (patch) | |
tree | 3f29d7edd99d799cf030c2ab8d04c86a7f98f812 /io_uring/io_uring.h | |
parent | 91016037216b3aaa0fa1b616d388053fb4202835 (diff) | |
download | linux-f2b41b748c19962b82709d9f23c6b2b0ce9d2f91.tar.bz2 |
regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
I got the the following report:
OF: ERROR: memory leak, expected refcount 1 instead of 2,
of_node_get()/of_node_put() unbalanced - destroy cset entry:
attach overlay node /i2c/pmic@62/regulators/exten
In of_get_regulator(), the node is returned from of_parse_phandle()
with refcount incremented, after using it, of_node_put() need be called.
Fixes: 69511a452e6d ("regulator: map consumer regulator based on device tree")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221115091508.900752-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'io_uring/io_uring.h')
0 files changed, 0 insertions, 0 deletions