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

Dan Carpenter dan.carpenter at linaro.org
Thu Sep 7 23:58:18 PDT 2023


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




More information about the Linux-mediatek mailing list