]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: ethernet: avoid using unitialized memory
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Mon, 12 Jan 2026 11:02:24 +0000 (12:02 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 12 Jan 2026 23:23:38 +0000 (00:23 +0100)
commitd01aa41d40e1b6f9e9a034bcae5fda322d5d0624
tree757cc275efd52c1eba449d464d00a1a855ac481a
parent4542656411cb3b8ced8036a8263c430e31d16685
realtek: ethernet: avoid using unitialized memory

The mac_addr variable was not zero-initialized, causing weird side effects
when the memory contents were a valid MAC address.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Link: https://github.com/openwrt/openwrt/pull/21504
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
(cherry picked from commit 19b8d391a95d5a2fa038551a9498a9fd426dfc0e)
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c