Re: [PATCH net] net: ethernet: mtk_eth_soc: fix uninitialized variable

From: Dan Carpenter
Date: Fri Sep 08 2023 - 02:58:27 EST


On Thu, Sep 07, 2023 at 04:14:20PM +0100, Daniel Golle wrote:
> Variable dma_addr in function mtk_poll_rx can be uninitialized on
> some of the error paths. In practise this doesn't matter, even random
> data present in uninitialized stack memory can safely be used in the
> way it happens in the error path.

KMemsan can detect unintialized memory at runtime as well. But
presumably no one runs that on production systems.

regards,
dan carpenter