diff options
| author | Miaoqian Lin <[email protected]> | 2022-03-09 09:19:52 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2022-04-08 14:29:44 +0000 |
| commit | 214e0d8fe4a813ae6ffd62bc2dfe7544c20914f4 (patch) | |
| tree | 052f638ed310d5512ba473c012c3bc5b277dada4 /drivers/net/xen-netback/interface.c | |
| parent | Linux 5.18-rc1 (diff) | |
| download | kernel-214e0d8fe4a813ae6ffd62bc2dfe7544c20914f4.tar.gz kernel-214e0d8fe4a813ae6ffd62bc2dfe7544c20914f4.zip | |
PCI: mediatek: Fix refcount leak in mtk_pcie_subsys_powerup()
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.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 87e8657ba99c ("PCI: mediatek: Add new method to get shared pcie-cfg base address")
Signed-off-by: Miaoqian Lin <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Reviewed-by: Miles Chen <[email protected]>
Acked-by: Rob Herring <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
