Daniel Golle 83c0942ff7
kernel: fix kernel panic in mtk_ppe
The patch that adds support for hw flow-offloading counters on newer
MediaTek SoCs tries to prints acct->packets and acct->bytes in debugfs,
without checking that acct isn't null. This causes a kernel panic when
trying to read /sys/kernel/debug/ppe0/entries on older MediaTek SoCs.
Fix this by adding a check for acct.

Fixes: openwrt#11756
Fixes: 9721a42a27 ("kernel: support hw flow-offloading counters on newer MediaTek SoCs")
Reported-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-01-16 22:04:35 +00:00
..
2022-12-24 15:24:18 +01:00
2023-01-14 22:31:38 +01:00
2022-12-23 19:44:14 +01:00
2023-01-14 22:31:38 +01:00
2023-01-13 22:04:22 +01:00
2023-01-14 22:31:38 +01:00
2022-12-23 19:44:20 +01:00
2023-01-14 22:31:38 +01:00
2023-01-16 12:42:23 +01:00
2022-12-23 19:44:20 +01:00
2023-01-14 22:31:38 +01:00
2023-01-14 22:31:38 +01:00
2022-12-23 19:44:20 +01:00
2022-12-23 19:44:22 +01:00
2023-01-03 23:55:45 +01:00
2023-01-14 22:31:38 +01:00
2023-01-09 21:39:45 +02:00
2023-01-07 01:30:31 +01:00
2023-01-09 21:39:46 +02:00
2022-12-23 19:44:21 +01:00
2023-01-15 13:30:09 +01:00
2023-01-03 20:56:01 +01:00