net: sched: lock imbalance in hhf qdisc
authorJohn Fastabend <john.fastabend@gmail.com>
Thu, 1 May 2014 16:23:06 +0000 (09:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 May 2014 20:20:36 +0000 (13:20 -0700)
commitab7ba76731a124ef9a70b07004c63b09e260b0d4
tree06591432c22460af7223d2edf6152c93866f8f8c
parentb2bb9ffdced59893208af375086e0cdb17a8d3c3
net: sched: lock imbalance in hhf qdisc

[ Upstream commit f6a082fed1e6407c2f4437d0d963b1bcbe5f9f58 ]

hhf_change() takes the sch_tree_lock and releases it but misses the
error cases. Fix the missed case here.

To reproduce try a command like this,

# tc qdisc change dev p3p2 root hhf quantum 40960 non_hh_weight 300000

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/sch_hhf.c