diff options
author | 2023-01-02 15:28:45 +0400 | |
---|---|---|
committer | 2023-01-09 15:14:10 +0100 | |
commit | c818ae563bf99457f02e8170aabd6b174f629f65 (patch) | |
tree | 3576116dcabd005f9f33c93aa51ab86ade750419 /lib/parser.c | |
parent | pinctrl: stm32: Fix refcount leak in stm32_pctrl_get_irq_domain (diff) | |
download | linux-rng-c818ae563bf99457f02e8170aabd6b174f629f65.tar.xz linux-rng-c818ae563bf99457f02e8170aabd6b174f629f65.zip |
pinctrl: rockchip: Fix refcount leak in rockchip_pinctrl_parse_groups
of_find_node_by_phandle() returns a node pointer with refcount incremented,
We should use of_node_put() on it when not needed anymore.
Add missing of_node_put() to avoid refcount leak.
Fixes: d3e5116119bd ("pinctrl: add pinctrl driver for Rockchip SoCs")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20230102112845.3982407-1-linmq006@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions