From: Jouni Malinen Date: Sat, 6 Mar 2010 16:35:08 +0000 (+0200) Subject: mac80211: Fix sta_mtx unlocking on insert STA failure path X-Git-Tag: v2.6.34-rc2~48^2~5^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38a679a52be13d5a0c766597ab823e06688d6e8e;p=pandora-kernel.git mac80211: Fix sta_mtx unlocking on insert STA failure path Commit 34e895075e21be3e21e71d6317440d1ee7969ad0 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed