kernel_optimize_test/drivers/soc
Miaoqian Lin 30bbfeb480 soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe
commit 37d838de369b07b596c19ff3662bf0293fdb09ee 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 08:59:54 +02:00
..
actions
amlogic
aspeed soc: aspeed: lpc-ctrl: Block error printing on probe defer cases 2022-02-23 12:01:06 +01:00
atmel
bcm soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe 2022-06-29 08:59:54 +02:00
dove
fsl soc: fsl: qe: Check of ioremap return value 2022-03-08 19:09:37 +01:00
gemini
imx soc: imx: Register SoC device only on i.MX boards 2021-12-22 09:30:52 +01:00
ixp4xx soc: ixp4xx/qmgr: fix invalid __iomem access 2021-08-12 13:22:18 +02:00
kendryte
lantiq
mediatek Revert "ASoC: mediatek: Check for error clk pointer" 2022-02-08 18:30:36 +01:00
qcom soc: qcom: llcc: Add MODULE_DEVICE_TABLE() 2022-06-09 10:21:13 +02:00
renesas
rockchip soc: rockchip: Fix refcount leak in rockchip_grf_init 2022-06-14 18:32:33 +02:00
samsung
sifive
sunxi
tegra soc/tegra: fuse: Fix bitwise vs. logical OR warning 2021-12-22 09:30:54 +01:00
ti soc: ti: ti_sci_pm_domains: Check for null return of devm_kcalloc 2022-06-09 10:20:57 +02:00
ux500
versatile
xilinx
zte
Kconfig
Makefile