[PATCH v2] coresight: trbe: Return NULL pointer for allocation failures
Suzuki K Poulose
suzuki.poulose at arm.com
Fri Sep 5 05:26:30 PDT 2025
On Thu, 04 Sep 2025 15:13:52 +0100, Leo Yan wrote:
> When the TRBE driver fails to allocate a buffer, it currently returns
> the error code "-ENOMEM". However, the caller etm_setup_aux() only
> checks for a NULL pointer, so it misses the error. As a result, the
> driver continues and eventually causes a kernel panic.
>
> Fix this by returning a NULL pointer from arm_trbe_alloc_buffer() on
> allocation failures. This allows that the callers can properly handle
> the failure.
>
> [...]
Applied, thanks!
[1/1] coresight: trbe: Return NULL pointer for allocation failures
https://git.kernel.org/coresight/c/811e07b1812a
Best regards,
--
Suzuki K Poulose <suzuki.poulose at arm.com>
More information about the linux-arm-kernel
mailing list