From: Simon Wunderlich Date: Tue, 13 Nov 2012 17:43:03 +0000 (+0100) Subject: mac80211: deinitialize ibss-internals after emptiness check X-Git-Tag: v3.7-rc7~22^2~3^2~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b78a4932f5fb11fadf41e69c606a33fa6787574c;p=pandora-kernel.git mac80211: deinitialize ibss-internals after emptiness check The check whether the IBSS is active and can be removed should be performed before deinitializing the fields used for the check/search. Otherwise, the configured BSS will not be found and removed properly. To make it more clear for the future, rename sdata->u.ibss to the local pointer ifibss which is used within the checks. This behaviour was introduced by f3209bea110cade12e2b133da8b8499689cb0e2e ("mac80211: fix IBSS teardown race") Cc: stable@vger.kernel.org Cc: Ignacy Gawedzki Signed-off-by: Simon Wunderlich Signed-off-by: Johannes Berg --- Reading git-diff-tree failed