arm/xen: Fix some refcount leaks
The of_find_compatible_node() function returns a node pointer with refcount incremented, We should use of_node_put() on it when done Add the missing of_node_put() to release the refcount. Fixes: 9b08aaa3 ("ARM: XEN: Move xen_early_init() before efi_init()") Fixes: b2371587 ("arm/xen: Read extended regions from DT and init Xen resource") Signed-off-by: NMiaoqian Lin <linmq006@gmail.com> Reviewed-by: NStefano Stabellini <sstabellini@kernel.org> Signed-off-by: NStefano Stabellini <stefano.stabellini@xilinx.com>
Showing
想要评论请 注册 或 登录