android_kernel_xiaomi_sm8350/drivers/pinctrl/nomadik
Miaoqian Lin c26012a1e6 pinctrl: nomadik: Fix refcount leak in nmk_pinctrl_dt_subnode_to_map
commit 4b32e054335ea0ce50967f63a7bfd4db058b14b9 upstream.

of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
Add missing of_node_put() to avoid refcount leak."

Fixes: c2f6d059ab ("pinctrl: nomadik: refactor DT parser to take two paths")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220607111602.57355-1-linmq006@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-25 11:18:23 +02:00
..
Kconfig
Makefile
pinctrl-ab8500.c
pinctrl-ab8505.c
pinctrl-abx500.c
pinctrl-abx500.h
pinctrl-nomadik-db8500.c
pinctrl-nomadik-stn8815.c
pinctrl-nomadik.c
pinctrl-nomadik.h