]> git.baikalelectronics.ru Git - kernel.git/commit
pkt_sched: Fix oops in htb_delete.
authorJarek Poplawski <jarkao2@gmail.com>
Wed, 13 Aug 2008 22:16:43 +0000 (15:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Aug 2008 22:16:43 +0000 (15:16 -0700)
commit09ded0d04a456d43bed153ff3d3e8c2301b2b4f9
tree949d06bd4dca0b43cb7247c2013c89337a8ca18b
parent7dafb7e156db23085956b7ba20842b7dd38cf286
pkt_sched: Fix oops in htb_delete.

Recent changes introduced a bug in htb_delete(): cl->parent->children
counter update misses checking cl->parent for NULL, which is used for
root classes, so deleting them causes an oops.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_htb.c