mac80211: Move ieee80211_mgd_auth() EBUSY check to be before allocation
authorJouni Malinen <jouni@codeaurora.org>
Wed, 10 Oct 2018 21:21:20 +0000 (00:21 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 11 Oct 2018 14:01:07 +0000 (16:01 +0200)
commit8d7432a2f53bc283148062955cbe7ffbf713e646
tree06432be630d4760f823c9fd6375539aa93822c84
parentfc107a93307165d5bf966767e4456832ef3940ef
mac80211: Move ieee80211_mgd_auth() EBUSY check to be before allocation

This makes it easier to conditionally replace full allocation of
auth_data to use reallocation for the case of continuing SAE
authentication. Furthermore, there was not really any point in having
this check done so late in the function after having already completed
number of steps that cannot be used anyway in the error case.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c