]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: dsa: rtl839x: fix uninitialized global access 21703/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 25 Jan 2026 18:07:32 +0000 (19:07 +0100)
committerRobert Marko <robimarko@gmail.com>
Mon, 26 Jan 2026 08:58:13 +0000 (09:58 +0100)
commitac9646394482ba2e464ccf75e74c936485028305
tree98d29fe062844aa09e4eb123b38928d122c80da9
parent17d45f677b0eb1da3c8190a2778fcdfcd9ecd234
realtek: dsa: rtl839x: fix uninitialized global access

Setup for DSA QOS on RTL839x accesses unitialized memory. For some
reason the handover of the priv structure was realized via global
intermediate variable switch_priv. During refactoring for adbb9a6
("realtek: dsa: rtl83xx: fix init section mismatch") this was not
noticed. Since then RTL839x devices crash during startup.

Fix this by using standard handover via function parameters.

Fixes: adbb9a6 ("realtek: dsa: rtl83xx: fix init section mismatch")
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21703
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/qos.c