]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b420feb581cf4681a43944afb19eb42879b86da
tree06432be630d4760f823c9fd6375539aa93822c84
parente2b09ba0a0feb7fdd7946b059dc92aa2281684f7
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