Re: [PATCH net] net: ethernet: mtk_eth_soc: fix memory corruption during fq dma init

From: Simon Horman
Date: Tue Oct 15 2024 - 08:39:21 EST


On Tue, Oct 15, 2024 at 10:17:55AM +0200, Felix Fietkau wrote:
> The loop responsible for allocating up to MTK_FQ_DMA_LENGTH buffers must
> only touch as many descriptors, otherwise it ends up corrupting unrelated
> memory. Fix the loop iteration count accordingly.
>
> Fixes: c57e55819443 ("net: ethernet: mtk_eth_soc: handle dma buffer size soc specific")
> Signed-off-by: Felix Fietkau <nbd@xxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>