X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=net%2Fmac80211%2Fsta_info.c;h=56422d8943511d7d2744f349342a21bcb75067c5;hb=38a679a52be13d5a0c766597ab823e06688d6e8e;hp=211c475f73c6f19083654760214b5ad3582d6c34;hpb=e5a9a35cb9c0d92d7c986cb3696fb794be100087;p=safe%2Fjmp%2Flinux-2.6 diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 211c475..56422d8 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c @@ -434,6 +434,7 @@ int sta_info_insert_rcu(struct sta_info *sta) __acquires(RCU) /* check if STA exists already */ if (sta_info_get_bss(sdata, sta->sta.addr)) { spin_unlock_irqrestore(&local->sta_lock, flags); + mutex_unlock(&local->sta_mtx); rcu_read_lock(); err = -EEXIST; goto out_free;