Re: [PATCH] powerpc/warp: Fix error handling in pika_dtm_thread

From: Madhavan Srinivasan

Date: Mon May 18 2026 - 01:45:09 EST


On Sun, 16 Nov 2025 10:44:11 +0800, Ma Ke wrote:
> 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.
>
> [...]

Applied to powerpc/fixes.

[1/1] powerpc/warp: Fix error handling in pika_dtm_thread
https://git.kernel.org/powerpc/c/108d7f951271cbd36ca36efc5e5d106966f5180c

cheers