Re: [PATCH -next] firmware: imx: secure-enclave: drop invalid overflow check in iobuf setup

From: Frank . Li

Date: Mon Jun 01 2026 - 12:35:14 EST


From: Frank Li <Frank.Li@xxxxxxx>


On Thu, 14 May 2026 14:33:21 +0530, Pankaj Gupta wrote:
> io.length is a 32-bit value, so comparing it against SIZE_MAX is
> tautological and always false on 64-bit systems. Clang flags this as
> a constant out-of-range comparison.
>
> Remove the invalid check and rely on size_t-based alignment and the
> existing shared memory bounds validation.
>
> [...]

Applied, thanks!

[1/1] firmware: imx: secure-enclave: drop invalid overflow check in iobuf setup
commit: af214594ea8ec75a71d32f982328df6bbc64704c

squash to previous's patch

Best regards,
--
Frank Li <Frank.Li@xxxxxxx>