]> git.baikalelectronics.ru Git - kernel.git/commit
[NET_SCHED]: HTB: fix incorrect use of RB_EMPTY_NODE
authorPatrick McHardy <kaber@trash.net>
Wed, 27 Sep 2006 23:36:23 +0000 (16:36 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:01:49 +0000 (18:01 -0700)
commitf51789c3d75ed6706a7d062423b16b1b665813d8
tree1ea176bcc24937619d52759016ccf70b4927733d
parent5898ce113ee644df28901accc463e950fa9cf3e8
[NET_SCHED]: HTB: fix incorrect use of RB_EMPTY_NODE

Fix incorrect use of RB_EMPTY_NODE in htb_safe_rb_erase, which makes it
skip nodes within the rbtree instead of nodes not in the tree, resulting
in crashes later on.

The root cause for this seems to be the very counter-intuitive behaviour
of the RB_EMPTY_NODE macro, which returns _false_ when the node is empty.

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