ramips: mtk_eth_soc: fix NULL pointer dereference for syncp
authorShiji Yang <yangshiji66@qq.com>
Sat, 10 Feb 2024 12:35:46 +0000 (20:35 +0800)
committerNick Hainke <vincent@systemli.org>
Sun, 11 Feb 2024 11:21:41 +0000 (12:21 +0100)
commit88d1322fcfb1ce20613d520aa70e3a1ef63e042d
treee2834561c5dde565ae2e6bd4d196da6035092d34
parent3b74ae780cd3bb2a6f83251a2aa0ca1575c4b3d3
ramips: mtk_eth_soc: fix NULL pointer dereference for syncp

u64_stats_init() has been unable to handle NULL pointer since
6.1 kernel. This patch fixes kernel oops on mt76x8 and rt305x
sub-target.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c