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-03-27 05:00:50 +01:00
2022-03-27 05:00:50 +01:00
2022-10-24 21:10:48 +02:00
2023-01-06 16:01:10 +01:00
2023-01-06 16:01:10 +01:00
2022-10-09 22:26:16 +02:00
2022-03-27 05:00:50 +01:00
2022-03-27 05:00:50 +01:00
2022-06-06 19:20:28 +02:00
2022-09-09 21:08:37 +01:00
2022-06-06 19:20:28 +02:00
2022-03-27 05:00:50 +01:00
2022-03-27 05:00:50 +01:00
2022-03-27 05:00:50 +01:00
2022-03-27 05:00:50 +01:00
2022-03-27 05:00:50 +01:00
2022-11-27 13:18:29 +01:00
2022-06-27 00:57:16 +02:00
2022-11-10 12:47:22 +01:00
2023-01-13 22:04:22 +01:00
2022-08-23 10:37:04 +02:00
2022-08-05 14:10:42 +02:00
2022-10-19 07:07:14 +02:00
2022-06-27 00:57:16 +02:00
2022-06-27 00:57:16 +02:00
2023-01-06 19:22:52 +01:00
2023-01-06 19:22:52 +01:00
2023-01-13 22:04:22 +01:00
2022-07-14 06:45:21 +02:00
2022-07-31 18:55:22 +02:00
2022-07-31 18:55:22 +02:00
2022-07-31 18:55:22 +02:00
2022-04-14 12:48:39 +08:00
2022-10-01 02:47:56 +02:00
2022-04-09 19:31:46 +02:00
2022-03-27 05:00:50 +01:00
2022-03-27 05:00:50 +01:00
2022-03-27 05:00:50 +01:00
2022-06-27 00:57:16 +02:00
2022-08-28 13:06:24 +02:00
2022-03-27 05:00:50 +01:00
2022-07-31 18:55:22 +02:00
2022-09-30 13:13:51 +02:00
2022-04-09 19:31:46 +02:00
2022-03-27 05:00:50 +01:00
2022-09-17 14:16:37 +02:00
2023-01-13 22:04:22 +01:00
2022-10-30 17:54:59 +01:00
2022-11-05 16:26:38 +01:00
2022-12-11 02:42:52 +01:00
2022-03-27 05:00:50 +01:00
2023-01-03 23:55:45 +01:00
2022-03-27 05:00:50 +01:00
2022-07-31 18:55:22 +02:00
2022-09-23 12:16:29 +02:00
2022-10-24 21:10:48 +02:00
2022-12-11 02:42:52 +01:00
2022-12-11 02:42:52 +01:00
2022-05-06 21:55:20 +02:00
2022-06-06 19:20:28 +02:00
2022-08-30 13:36:28 +01:00
2022-08-30 13:36:28 +01:00
2022-09-09 05:04:32 +01:00
2022-08-30 13:36:28 +01:00
2022-08-30 13:36:28 +01:00
2022-08-30 13:36:28 +01:00
2022-08-30 13:36:28 +01:00
2022-08-30 13:36:28 +01:00
2022-09-09 21:08:37 +01:00
2023-01-16 22:04:35 +00:00
2022-11-09 18:18:27 +01:00
2022-11-09 18:18:27 +01:00
2022-12-11 02:42:52 +01:00
2022-12-11 02:42:52 +01:00
2022-11-09 18:18:27 +01:00
2022-11-09 18:18:27 +01:00
2022-11-09 18:18:27 +01:00
2022-11-21 11:47:36 +01:00
2022-12-11 02:42:52 +01:00
2022-12-28 20:06:12 +01:00
2022-11-09 18:18:27 +01:00
2022-12-28 20:06:12 +01:00
2022-11-21 11:47:36 +01:00
2022-12-27 19:10:04 +01:00
2022-11-21 20:46:47 +01:00
2022-11-21 20:46:47 +01:00
2022-11-21 20:46:47 +01:00
2022-11-21 20:46:47 +01:00
2022-11-21 20:46:47 +01:00
2022-12-27 19:10:05 +01:00
2022-09-05 14:05:50 +01:00
2023-01-16 12:42:23 +01:00
2022-03-27 05:00:50 +01:00
2022-04-09 19:31:46 +02:00
2022-08-23 10:37:04 +02:00
2023-01-03 23:55:45 +01:00
2022-03-27 05:00:50 +01:00
2022-08-25 22:07:43 +02:00
2022-08-23 10:37:04 +02:00