Skip to content
Commit 1ba904b6 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Arnd Bergmann
Browse files

ARM: cns3xxx: Fix refcount leak in cns3xxx_init



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: 415f5914 ("ARM: cns3xxx: initial DT support")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Acked-by: default avatarKrzysztof Halasa <khalasa@piap.pl>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 17b1362d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment