]> err.no Git - linux-2.6/commitdiff
pkt_sched: Fix unlocking in tc_ctl_tfilter()
authorJarek Poplawski <jarkao2@gmail.com>
Fri, 15 Aug 2008 00:01:10 +0000 (17:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Aug 2008 00:01:10 +0000 (17:01 -0700)
Fix a bug with spin_lock_bh() inserted instead of spin_unlock_bh() by
some recent patch.

Reported-by: Denys Fedoryshchenko <denys@visp.net.lb>
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c

index d2b6f54a626191b33fa782bd262b279a02cd57ef..5cafdd4c801848f00e3d55daca0d81875d709c7d 100644 (file)
@@ -280,7 +280,7 @@ replay:
                if (n->nlmsg_type == RTM_DELTFILTER && t->tcm_handle == 0) {
                        spin_lock_bh(root_lock);
                        *back = tp->next;
-                       spin_lock_bh(root_lock);
+                       spin_unlock_bh(root_lock);
 
                        tfilter_notify(skb, n, tp, fh, RTM_DELTFILTER);
                        tcf_destroy(tp);