summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_cake.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-11-25 20:15:32 +0100
committerMark Brown <broonie@kernel.org>2022-11-25 20:15:32 +0100
commit0b21b4dc9a2204fba599a248f5c7ed7822f56154 (patch)
treede1cf656290c3e8085e4b00a6b9cee4eff627270 /net/sched/sch_cake.c
parentregulator: Drop obsolete dependencies on COMPILE_TEST (diff)
parentLinux 6.1-rc4 (diff)
downloadlinux-0b21b4dc9a2204fba599a248f5c7ed7822f56154.tar.xz
linux-0b21b4dc9a2204fba599a248f5c7ed7822f56154.zip
Merge tag 'v6.1-rc4' into regulator-6.2
Linux 6.1-rc4 which should get my CI working on RPi3s again.
Diffstat (limited to 'net/sched/sch_cake.c')
-rw-r--r--net/sched/sch_cake.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sched/sch_cake.c b/net/sched/sch_cake.c
index 817cd0695b35..3ed0c3342189 100644
--- a/net/sched/sch_cake.c
+++ b/net/sched/sch_cake.c
@@ -2224,8 +2224,12 @@ retry:
static void cake_reset(struct Qdisc *sch)
{
+ struct cake_sched_data *q = qdisc_priv(sch);
u32 c;
+ if (!q->tins)
+ return;
+
for (c = 0; c < CAKE_MAX_TINS; c++)
cake_clear_tin(sch, c);
}