]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sched/sch_api.c
pkt_sched: Grab correct lock in notify_and_destroy().
[linux-2.6-omap-h63xx.git] / net / sched / sch_api.c
index c25465e5607aeb32cf39fb8c784514a64ebedcbf..c8dc72e12107a8ac1d2aefd498c84a12ad3e3dec 100644 (file)
@@ -638,9 +638,9 @@ static void notify_and_destroy(struct sk_buff *skb, struct nlmsghdr *n, u32 clid
                qdisc_notify(skb, n, clid, old, new);
 
        if (old) {
-               spin_lock_bh(&old->q.lock);
+               sch_tree_lock(old);
                qdisc_destroy(old);
-               spin_unlock_bh(&old->q.lock);
+               sch_tree_unlock(old);
        }
 }