]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
arm/xen: Fix some refcount leaks
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 20 Apr 2022 01:49:13 +0000 (01:49 +0000)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Fri, 22 Apr 2022 20:33:33 +0000 (13:33 -0700)
commit533bec143a4c32f7b2014a159d0f5376226e5b4d
tree1a9cf84c92a27eda0843d8d2289ac41754c2121f
parentf31076a6b2391896088fa81755a892213f07788e
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: 9b08aaa3199a ("ARM: XEN: Move xen_early_init() before efi_init()")
Fixes: b2371587fe0c ("arm/xen: Read extended regions from DT and init Xen resource")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
arch/arm/xen/enlighten.c