openwrt/target/linux/generic
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
..
backport-5.10 kernel: bump 5.10 to 5.10.163 2023-01-14 22:31:38 +01:00
backport-5.15 kernel: bump 5.15 to 5.15.87 2023-01-13 22:04:22 +01:00
files
hack-5.10 kernel: bump 5.10 to 5.10.163 2023-01-14 22:31:38 +01:00
hack-5.15 kernel: bump 5.15 to 5.15.87 2023-01-13 22:04:22 +01:00
image
other-files
pending-5.10 kernel: bump 5.10 to 5.10.163 2023-01-14 22:31:38 +01:00
pending-5.15 kernel: fix kernel panic in mtk_ppe 2023-01-16 22:04:35 +00:00
PATCHES
config-5.10 kernel: 5.10: update nvmem subsystem to the 5.15 state 2023-01-06 14:34:37 +01:00
config-5.15 kernel: 5.15: add missing kernel configuration options 2023-01-16 12:42:23 +01:00
config-filter