Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91997
b: refs/heads/master
c: 1ebebea
h: refs/heads/master
i:
  91995: 2772ce6
v: v3
  • Loading branch information
Pavel Emelyanov authored and John W. Linville committed Apr 24, 2008
1 parent 94537ad commit 1af1fa9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1d8f44a4e3c730984283c0bf4b3458e3a88c15a
refs/heads/master: 1ebebea8e844d01c80b93b8ee4d696ee7c0cbc27
7 changes: 5 additions & 2 deletions trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -2248,10 +2248,13 @@ static void ieee80211_rx_bss_put(struct net_device *dev,
struct ieee80211_sta_bss *bss)
{
struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
if (!atomic_dec_and_test(&bss->users))

local_bh_disable();
if (!atomic_dec_and_lock(&bss->users, &local->sta_bss_lock)) {
local_bh_enable();
return;
}

spin_lock_bh(&local->sta_bss_lock);
__ieee80211_rx_bss_hash_del(dev, bss);
list_del(&bss->list);
spin_unlock_bh(&local->sta_bss_lock);
Expand Down

0 comments on commit 1af1fa9

Please sign in to comment.