Re: [PATCH next] accel: ethosu: Fix shift overflow in cmd_to_addr()
From: Rob Herring
Date: Wed Feb 18 2026 - 17:31:12 EST
On Wed, Oct 29, 2025 at 08:30:11AM +0300, Dan Carpenter wrote:
> The "((cmd[0] & 0xff0000) << 16)" shift is zero. This was intended
> to be (((u64)cmd[0] & 0xff0000) << 16). Move the cast to the correct
> location.
>
> Fixes: 5a5e9c0228e6 ("accel: Add Arm Ethos-U NPU driver")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> ---
> >From static analysis. Not tested.
>
> drivers/accel/ethosu/ethosu_gem.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Missed this one. Now applied.
Rob