]> git.ipfire.org Git - thirdparty/u-boot.git/commit
remoteproc: k3-r5: cast size to size_t6dd
authorPhilippe Schenker <philippe.schenker@impulsing.ch>
Tue, 11 Nov 2025 07:16:26 +0000 (08:16 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 18 Nov 2025 18:50:05 +0000 (12:50 -0600)
commit5d3697b7cf0006fee3fa12966643d605ae0777cc
treec90752cf64c7e1e3aec3524f6f8853602d311bd8
parent46e372feb784f533cd92e73f51f90b4fe4d336e5
remoteproc: k3-r5: cast size to size_t6dd

When compiling for R5 core with CONFIG_REMOTEPROC_TI_K3_R5F,
passing 'size' (ulong) to ti_secure_image_post_process() caused
a type mismatch compiler error.

On platforms where ulong and size_t differ in size, directly
casting could lead to out-of-bounds memory access. Fix by
introducing a size_t temporary variable, passing it to the
function, and writing back the potentially modified value for
use in subsequent calls.

Signed-off-by: Philippe Schenker <philippe.schenker@impulsing.ch>
Acked-by: Andrew Davis <afd@ti.com>
drivers/remoteproc/ti_k3_r5f_rproc.c