linux/arch/powerpc/platforms/44x
Ma Ke 108d7f9512 powerpc/warp: Fix error handling in pika_dtm_thread
pika_dtm_thread() acquires client through of_find_i2c_device_by_node()
but fails to release it in error handling path. This could result in a
reference count leak, preventing proper cleanup and potentially
leading to resource exhaustion. Add put_device() to release the
reference in the error handling path.

Found by code review.

Cc: stable@vger.kernel.org
Fixes: 3984114f05 ("powerpc/warp: Platform fix for i2c change")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20251116024411.21968-1-make24@iscas.ac.cn
2026-05-12 11:49:30 +05:30
..
44x.h
canyonlands.c powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
cpm.c powerpc/platforms: Move files from 4xx to 44x 2024-06-28 22:28:48 +10:00
ebony.c powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
fsp2.c powerpc/fsp2: Simplify with scoped for each OF child loop 2026-02-03 20:58:13 -06:00
fsp2.h
gpio.c powerpc/44x: Drop legacy-of-mm-gpiochip.h header 2025-09-06 16:07:11 +05:30
hsta_msi.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
idle.c powerpc/44x: Make ppc44x_idle_init() static 2023-11-30 13:25:33 +11:00
iss4xx.c powerpc: Use of_property_present() for testing DT property presence 2023-03-30 23:36:35 +11:00
Kconfig powerpc/44x: Drop legacy-of-mm-gpiochip.h header 2025-09-06 16:07:11 +05:30
machine_check.c powerpc/platforms: Move files from 4xx to 44x 2024-06-28 22:28:48 +10:00
Makefile powerpc/platforms: Move files from 4xx to 44x 2024-06-28 22:28:48 +10:00
misc_44x.S
pci.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pci.h powerpc/platforms: Move files from 4xx to 44x 2024-06-28 22:28:48 +10:00
ppc44x_simple.c powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
ppc476_modules.lds
ppc476.c powerpc/476: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-07 22:49:12 +10:00
sam440ep.c powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
soc.c powerpc/platforms: Move files from 4xx to 44x 2024-06-28 22:28:48 +10:00
uic.c powerpc/44x/uic: Consolidate chained IRQ handler install/remove 2026-04-01 09:21:05 +05:30
warp.c powerpc/warp: Fix error handling in pika_dtm_thread 2026-05-12 11:49:30 +05:30