Re: [PATCH] net: prestera: avoid overreading a short firmware tail
From: Andrew Lunn
Date: Sun Aug 30 2026 - 10:28:48 EST
On Sun, Aug 30, 2026 at 10:24:03PM +0800, Pengpeng Hou wrote:
> prestera_ldr_send() writes the firmware in 32-bit words even when the final
> chunk is not four-byte aligned. The last iteration then reads a full u32
> from a one-to-three-byte tail.
>
> Reserve the aligned ring space, use unaligned-safe full-word loads, and
> zero-pad a partial final word without reading beyond the firmware image.
"What?" a patch does i can see by reading the code. So the commit
message should explain "Why?" you want to make this change.
Andrew
---
pw-bot: cr