From: Johannes Berg Date: Tue, 5 Oct 2010 08:41:47 +0000 (+0200) Subject: mac80211: fix deadlock with multiple interfaces X-Git-Tag: v2.6.37-rc1~147^2~191^2^2~39 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=025e6be220e448c02045e8499c7db8ce4bc8eea2;p=pandora-kernel.git mac80211: fix deadlock with multiple interfaces The locking around ieee80211_recalc_smps is buggy -- it cannot acquire another interface's mutex while the iflist mutex is held because another code path could be holding the iface mutex and trying to acquire the iflist mutex. But the locking is also unnecessary, we only check "ifmgd->associated" as a bool, and don't use the pointer (in check_mgd_smps). Reported-by: Ben Greear Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed