linux-stable/drivers/soc
Miaoqian Lin 10ba9d499a soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe
commit 37d838de36 upstream.

of_find_matching_node() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
Add missing of_node_put() to avoid refcount leak.

In brcmstb_init_sram, it pass dn to of_address_to_resource(),
of_address_to_resource() will call of_find_device_by_node() to take
reference, so we should release the reference returned by
of_find_matching_node().

Fixes: 0b741b8234 ("soc: bcm: brcmstb: Add support for S2/S3/S5 suspend states (ARM)")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-29 09:03:31 +02:00
..
actions
amlogic
aspeed soc: aspeed: lpc-ctrl: Block error printing on probe defer cases 2022-02-23 12:03:19 +01:00
atmel
bcm soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe 2022-06-29 09:03:31 +02:00
canaan
dove
fsl soc: fsl: qe: Check of ioremap return value 2022-03-08 19:12:49 +01:00
gemini
imx
ixp4xx
lantiq
litex
mediatek soc: mediatek: pm-domains: Add wakeup capacity support in power domain 2022-04-08 14:23:18 +02:00
qcom soc: qcom: llcc: Add MODULE_DEVICE_TABLE() 2022-06-09 10:23:05 +02:00
renesas
rockchip soc: rockchip: Fix refcount leak in rockchip_grf_init 2022-06-14 18:36:07 +02:00
samsung
sifive
sunxi
tegra
ti soc: ti: ti_sci_pm_domains: Check for null return of devm_kcalloc 2022-06-09 10:22:41 +02:00
ux500
versatile
xilinx
Kconfig
Makefile