[NET_SCHED]: sch_htb/sch_hfsc: fix oops in qlen_notify
authorPatrick McHardy <kaber@trash.net>
Tue, 27 Mar 2007 21:04:24 +0000 (14:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Mar 2007 21:04:24 +0000 (14:04 -0700)
commitc38c83cb705a41e30a99545ae2314c00e3b9bf1c
tree1d91f9303661f75c2104dd6db1d78f55445fc22c
parent9b2f7bcf0efea98666da56073448647e2b373b67
[NET_SCHED]: sch_htb/sch_hfsc: fix oops in qlen_notify

During both HTB and HFSC class deletion the class is removed from the
class hash before calling qdisc_tree_decrease_qlen. This makes the
->get operation in qdisc_tree_decrease_qlen fail, so it passes a NULL
pointer to ->qlen_notify, causing an oops.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_hfsc.c
net/sched/sch_htb.c