linux-yocto/drivers/soc
Johan Hovold 81bf2780ba soc: amlogic: canvas: fix device leak on lookup
commit 32200f4828de9d7e6db379909898e718747f4e18 upstream.

Make sure to drop the reference taken to the canvas platform device when
looking up its driver data.

Note that holding a reference to a device does not prevent its driver
data from going away so there is no point in keeping the reference.

Also note that commit 28f851e6af ("soc: amlogic: canvas: add missing
put_device() call in meson_canvas_get()") fixed the leak in a lookup
error path, but the reference is still leaking on success.

Fixes: d4983983d9 ("soc: amlogic: add meson-canvas driver")
Cc: stable@vger.kernel.org	# 4.20: 28f851e6af
Cc: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://patch.msgid.link/20250926142454.5929-2-johan@kernel.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-01-02 12:57:29 +01:00
..
amlogic soc: amlogic: canvas: fix device leak on lookup 2026-01-02 12:57:29 +01:00
apple soc: apple: mailbox: fix device leak on lookup 2026-01-02 12:57:29 +01:00
aspeed soc: aspeed: socinfo: Add AST27xx silicon IDs 2025-08-11 09:37:53 +09:30
atmel ARM: at91: Add Support in SoC driver for SAMA7D65 2025-02-24 12:16:28 +02:00
bcm mips: Replace __ASSEMBLY__ with __ASSEMBLER__ in the mips headers 2025-08-29 22:34:29 +02:00
canaan
cirrus soc: ep93xx: drop reference to removed EP93XX_SOC_COMMON config 2024-09-26 12:58:18 +00:00
dove A set of cleanups for the generic interrupt subsystem: 2025-05-27 08:07:32 -07:00
fsl sound updates for 6.18-rc1 2025-10-02 11:37:19 -07:00
fujitsu soc: Switch back to struct platform_driver::remove() 2024-11-01 17:08:57 +01:00
gemini
hisilicon soc: hisilicon: kunpeng_hccs: Fix spelling mistake "decrese" -> "decrease" 2025-08-28 11:23:08 +00:00
imx soc: imx8m: Dump higher 64bits UID 2025-05-09 18:16:28 +08:00
ixp4xx soc: Switch back to struct platform_driver::remove() 2024-11-01 17:08:57 +01:00
lantiq
litex drivers/soc/litex: Use devm_register_restart_handler() 2025-01-19 14:05:35 -05:00
loongson soc: loongson: loongson2_guts: Add check for devm_kstrdup() 2025-02-20 22:29:05 +01:00
mediatek soc: mediatek: mtk-svs: fix device leaks on mt8192 probe failure 2025-09-10 11:48:56 +02:00
microchip soc: Switch back to struct platform_driver::remove() 2024-11-01 17:08:57 +01:00
nuvoton
pxa soc: Switch back to struct platform_driver::remove() 2024-11-01 17:08:57 +01:00
qcom soc: qcom: ocmem: fix device leak on lookup 2026-01-02 12:57:29 +01:00
renesas soc: renesas: rz-sysc: Populate readable_reg/writeable_reg in regmap config 2025-12-18 14:02:59 +01:00
rockchip soc: rockchip: grf: switch to FIELD_PREP_WM16_CONST macro 2025-09-02 19:59:37 -04:00
samsung soc: samsung: exynos-pmu: fix device leak on regmap lookup 2026-01-02 12:57:28 +01:00
sophgo soc: sophgo: cv1800: rtcsys: New driver (handling RTC only) 2025-05-07 08:40:02 +08:00
sunxi soc: sunxi: sram: register regmap as syscon 2025-09-10 20:51:26 +08:00
tegra soc/tegra: fuse: Do not register SoC device on ACPI boot 2026-01-02 12:56:56 +01:00
ti net: ethernet: ti: netcp: Standardize knav_dma_open_channel to return NULL on error 2025-11-04 19:15:36 -08:00
ux500
versatile soc: versatile: enable compile testing 2024-08-30 15:40:11 +02:00
vt8500 soc: Add VIA/WonderMedia SoC identification driver 2025-05-04 19:27:01 +02:00
xilinx arm64: ZynqMP SoC changes for 6.13 2024-11-04 14:31:16 +01:00
Kconfig RISC-V SoC for v6.16 2025-05-21 19:25:08 +02:00
Makefile RISC-V SoC for v6.16 2025-05-21 19:25:08 +02:00