diff options
author | 2023-09-10 22:40:30 +0100 | |
---|---|---|
committer | 2023-09-11 10:37:50 +0100 | |
commit | e10a35abb3da12b812cfb6fc6137926a0c81e39a (patch) | |
tree | 27befbafdbdc6c287ad31566819f93de7981bb50 /drivers/net/pcs/Kconfig | |
parent | kcm: Fix memory leak in error path of kcm_sendmsg() (diff) | |
download | linux-e10a35abb3da12b812cfb6fc6137926a0c81e39a.tar.gz linux-e10a35abb3da12b812cfb6fc6137926a0c81e39a.tar.bz2 linux-e10a35abb3da12b812cfb6fc6137926a0c81e39a.zip |
net: ethernet: mtk_eth_soc: fix uninitialized variable
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.
However, in order to make Smatch happy make sure the variable is
always initialized.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pcs/Kconfig')
0 files changed, 0 insertions, 0 deletions