From: Juuso Oikarinen Date: Mon, 28 Mar 2011 11:32:32 +0000 (+0300) Subject: cfg80211: fix BSS double-unlinking (continued) X-Git-Tag: v2.6.39-rc2~7^2~8^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b78ac9bfc7483ba4bda9ad3d10dd4afcf88337c;p=pandora-kernel.git cfg80211: fix BSS double-unlinking (continued) This patch adds to the fix "fix BSS double-unlinking" (commit 3207390a8b58bfc1335750f91cf6783c48ca19ca) by Johannes Berg. It turns out, that the double-unlinking scenario can also occur if expired BSS elements are removed whilst an interface is performing association. To work around that, replace list_del with list_del_init also in the "cfg80211_bss_expire" function, so that the check for whether the BSS still is in the list works correctly in cfg80211_unlink_bss. Signed-off-by: Juuso Oikarinen Reviewed-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed