diff options
| author | Miaoqian Lin <linmq006@gmail.com> | 2022-06-05 11:58:41 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-07-02 16:27:38 +0200 |
| commit | 68d4303bf59662b64bd555e2aa0518282d20aa4f (patch) | |
| tree | 3f7d740b56f0ab6ef74c2c2dad6d20be81234c7c /scripts/mod | |
| parent | 71e12e5b02674459a24f16e965255d63b31fe049 (diff) | |
ARM: cns3xxx: Fix refcount leak in cns3xxx_init
commit 1ba904b6b16e08de5aed7c1349838d9cd0d178c5 upstream.
of_find_compatible_node() returns a node pointer with refcount
incremented, we should use of_node_put() on it when done.
Add missing of_node_put() to avoid refcount leak.
Fixes: 415f59142d9d ("ARM: cns3xxx: initial DT support")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by: Krzysztof Halasa <khalasa@piap.pl>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/mod')
0 files changed, 0 insertions, 0 deletions
