Daniel Golle
ec753a97ff
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: 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-17 21:22:37 +08:00
..
2022-03-02 16:57:21 +00:00
2021-12-30 17:39:24 +08:00
2022-10-26 22:31:12 +08:00
2023-01-10 21:48:59 +08:00
2023-01-10 21:48:59 +08:00
2022-10-06 10:55:42 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2022-05-31 22:57:58 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2022-09-25 16:34:49 +08:00
2022-09-25 16:34:49 +08:00
2022-06-04 23:25:35 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2022-01-28 01:53:29 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2022-11-26 23:39:10 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2022-06-15 23:04:26 +08:00
2022-09-25 16:34:49 +08:00
2023-01-14 07:49:58 +08:00
2022-09-10 18:18:08 +08:00
2022-08-25 22:22:58 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2022-06-09 23:18:30 +08:00
2022-06-09 23:18:30 +08:00
2021-12-30 17:39:24 +08:00
2023-01-14 07:49:58 +08:00
2022-11-05 21:57:04 +08:00
2023-01-14 07:49:58 +08:00
2022-07-15 10:02:50 +08:00
2023-01-14 07:49:58 +08:00
2022-07-15 10:02:50 +08:00
2021-12-30 17:39:24 +08:00
2022-04-03 13:03:13 +08:00
2022-09-19 21:54:35 +08:00
2022-04-11 14:35:37 +08:00
2021-12-30 17:39:24 +08:00
2022-04-03 13:03:13 +08:00
2021-12-30 17:39:24 +08:00
2022-06-15 23:04:26 +08:00
2023-01-02 14:11:40 +08:00
2021-12-30 17:39:24 +08:00
2022-09-22 19:29:52 +08:00
2022-04-03 13:03:13 +08:00
2022-04-03 13:03:13 +08:00
2021-12-30 17:39:24 +08:00
2022-10-06 10:55:42 +08:00
2022-04-11 14:35:37 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2022-09-17 18:22:20 +08:00
2021-12-30 17:39:24 +08:00
2023-01-14 07:49:58 +08:00
2022-10-31 19:13:52 +08:00
2022-11-05 07:25:09 +00:00
2022-12-06 15:01:21 +08:00
2021-12-30 17:39:24 +08:00
2023-01-02 14:11:40 +08:00
2022-04-03 13:03:13 +08:00
2022-04-03 13:03:13 +08:00
2022-10-01 01:33:09 +08:00
2022-10-26 22:31:12 +08:00
2022-12-06 15:01:21 +08:00
2022-12-09 18:18:58 +08:00
2022-05-31 22:57:58 +08:00
2022-09-03 11:23:20 +08:00
2022-09-03 11:23:20 +08:00
2022-09-26 16:32:36 +08:00
2022-09-03 11:23:20 +08:00
2022-09-03 11:23:20 +08:00
2022-09-03 11:23:20 +08:00
2022-09-03 11:23:20 +08:00
2022-09-03 11:23:20 +08:00
2022-10-01 01:33:09 +08:00
2023-01-17 21:22:37 +08:00
2022-11-27 01:49:13 +08:00
2022-11-27 01:49:13 +08:00
2022-12-06 15:01:21 +08:00
2022-12-06 15:01:21 +08:00
2022-12-06 15:01:21 +08:00
2022-11-27 01:49:13 +08:00
2022-11-27 01:49:13 +08:00
2022-11-27 01:49:13 +08:00
2022-12-06 15:01:21 +08:00
2023-01-07 20:56:12 +08:00
2022-11-27 01:49:13 +08:00
2023-01-07 20:56:12 +08:00
2022-12-06 15:01:21 +08:00
2023-01-07 20:54:06 +08:00
2022-11-27 01:49:13 +08:00
2022-11-27 01:49:13 +08:00
2022-11-27 01:49:13 +08:00
2022-11-27 01:49:13 +08:00
2022-11-27 01:49:13 +08:00
2023-01-07 20:55:31 +08:00
2022-09-10 18:18:08 +08:00
2022-09-10 18:18:08 +08:00
2021-12-30 17:39:24 +08:00
2021-12-30 17:39:24 +08:00
2022-04-03 13:03:13 +08:00
2022-04-11 14:35:37 +08:00
2022-08-25 22:22:58 +08:00
2021-12-30 17:39:24 +08:00
2023-01-02 14:11:40 +08:00
2021-12-30 17:39:24 +08:00
2022-09-10 18:18:08 +08:00
2022-08-26 13:11:25 +08:00
2022-08-25 22:22:58 +08:00
2023-01-14 07:49:58 +08:00