]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix sta_mtx unlocking on insert STA failure path
authorJouni Malinen <j@w1.fi>
Sat, 6 Mar 2010 16:35:08 +0000 (18:35 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Mar 2010 21:16:54 +0000 (16:16 -0500)
commit19ca269f3a4bb776b526aec30526cac89f51191f
tree56e6e769ff0dd38264bbb1462562761824701925
parent9d1aefe00b1727837028af92166c1fd205d098b5
mac80211: Fix sta_mtx unlocking on insert STA failure path

Commit 49fca2a87c2cdc243d8e3b2e5130f9c692d25ed6 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>
net/mac80211/sta_info.c