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

Dan Carpenter
2023-09-08T06:58:30Z

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