]> git.baikalelectronics.ru Git - kernel.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)
commit0b971eca274d052800ec2c9b882911a3fd07c384
tree1a9cf84c92a27eda0843d8d2289ac41754c2121f
parentb57dc4a58a093a94e9e43ae6b9b948a642b61af2
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: 0fa5c0e3b229 ("ARM: XEN: Move xen_early_init() before efi_init()")
Fixes: 3fe625b0b84d ("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