diff options
author | Daniel Golle <daniel@makrotopia.org> | 2023-01-16 19:40:24 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2023-01-16 22:04:35 +0000 |
commit | 83c0942ff7cb1a1aae2e5da6424c803644e3fa38 (patch) | |
tree | 954d0cb3495c66403a9c1b2d0375d3718405b3b8 /target/linux/mediatek | |
parent | 1cefb14230db9b7e87015e7950ee931b3f21e1aa (diff) | |
download | upstream-83c0942ff7cb1a1aae2e5da6424c803644e3fa38.tar.gz upstream-83c0942ff7cb1a1aae2e5da6424c803644e3fa38.tar.bz2 upstream-83c0942ff7cb1a1aae2e5da6424c803644e3fa38.zip |
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>
Diffstat (limited to 'target/linux/mediatek')
0 files changed, 0 insertions, 0 deletions