Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mac80211: Fix sta_mtx unlocking on insert STA failure path
Commit 34e8950 introduced sta_mtx locking into sta_info_insert() (now sta_info_insert_rcu), but forgot to unlock this mutex on one of the error paths. Fix this by adding the missing mutex_unlock() call for the case where STA insert fails due to an entry existing already. This may happen at least in AP mode when a STA roams between two BSSes (vifs). Signed-off-by: Jouni Malinen <j@w1.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
- Loading branch information