diff options
author | David S. Miller <davem@davemloft.net> | 2008-08-03 08:25:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-03 08:25:50 +0200 |
commit | 35ed4e75989c4e84a44b25569bbf09b98f923880 (patch) | |
tree | db12e24912d7525dde5d1c50f0159ccdeab7076e /net | |
parent | pkt_sched: Use qdisc_lock() on already sampled root qdisc. (diff) | |
download | linux-35ed4e75989c4e84a44b25569bbf09b98f923880.tar.xz linux-35ed4e75989c4e84a44b25569bbf09b98f923880.zip |
mac80211: Use queue_lock() in ieee80211_ht_agg_queue_remove().
qdisc_root_lock() is only %100 safe to use when the RTNL
semaphore is held.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/wme.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/wme.c b/net/mac80211/wme.c index 28437f0001db..4310e2f65661 100644 --- a/net/mac80211/wme.c +++ b/net/mac80211/wme.c @@ -241,12 +241,14 @@ void ieee80211_ht_agg_queue_remove(struct ieee80211_local *local, } else { struct netdev_queue *txq; spinlock_t *root_lock; + struct Qdisc *q; txq = netdev_get_tx_queue(local->mdev, agg_queue); - root_lock = qdisc_root_lock(txq->qdisc); + q = rcu_dereference(txq->qdisc); + root_lock = qdisc_lock(q); spin_lock_bh(root_lock); - qdisc_reset(txq->qdisc); + qdisc_reset(q); spin_unlock_bh(root_lock); } } |