Skip to content

Commit

Permalink
pkt_sched: Fix unlocking in tc_ctl_tfilter()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Aug 15, 2008
1 parent 191cd58 commit 323c048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sched/cls_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
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);
Expand Down

0 comments on commit 323c048

Please sign in to comment.