Re: [PATCH] PCI: mediatek: Fix refcount leak in mtk_pcie_subsys_powerup
From: Rob Herring
Date: Thu Mar 24 2022 - 17:03:35 EST
On Wed, Mar 09, 2022 at 09:19:52AM +0000, Miaoqian Lin wrote:
> 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: 87e8657ba99c ("PCI: mediatek: Add new method to get shared pcie-cfg base address")
> Signed-off-by: Miaoqian Lin <linmq006@xxxxxxxxx>
> ---
> drivers/pci/controller/pcie-mediatek.c | 1 +
> 1 file changed, 1 insertion(+)
Acked-by: Rob Herring <robh@xxxxxxxxxx>