]> git.baikalelectronics.ru Git - kernel.git/commit
htb: fix two bugs
authorEric Dumazet <edumazet@google.com>
Mon, 5 Nov 2012 16:40:49 +0000 (16:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Nov 2012 00:06:29 +0000 (19:06 -0500)
commitce4146d8be860acc8507e47744fa89cb90eb2dbb
tree2e512f8271b19ba3d15dcb370ff0015eb110329e
parent22d2768b9403a586d60ef4bbb26619dfa8bfc26c
htb: fix two bugs

Commit e6d4e1296e0 (htb: improved accuracy at high rates)
introduced two bugs :

1) one bstats_update() was inadvertently removed from
   htb_dequeue_tree(), breaking statistics/rate estimation.

2) Missing qdisc_put_rtab() calls in htb_change_class(),
   leaking kernel memory, now struct htb_class no longer
   retains pointers to qdisc_rate_table structs.

   Since only rate is used, dont use qdisc_get_rtab() calls
   copying data we ignore anyway.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Vimalkumar <j.vimal@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_htb.c