]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/sched: Remove unnecessary WARNING condition for empty child qdisc in htb_activate
authorWilliam Liu <will@willsroot.io>
Tue, 19 Aug 2025 03:36:59 +0000 (03:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:34:49 +0000 (16:34 +0200)
commit9c9bbbe1b3e26be70ae9fe3f428ea2a36c2ed029
treee9b32532bf05d390317f14c69b27ecf11c8b5c35
parent62d591dde4defb1333d202410609c4ddeae060b3
net/sched: Remove unnecessary WARNING condition for empty child qdisc in htb_activate

[ Upstream commit 2c2192e5f9c7c2892fe2363244d1387f62710d83 ]

The WARN_ON trigger based on !cl->leaf.q->q.qlen is unnecessary in
htb_activate. htb_dequeue_tree already accounts for that scenario.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: William Liu <will@willsroot.io>
Reviewed-by: Savino Dicanosa <savy@syst3mfailure.io>
Link: https://patch.msgid.link/20250819033632.579854-1-will@willsroot.io
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sched/sch_htb.c