]> asedeno.scripts.mit.edu Git - linux.git/commit
mac80211: don't re-parse elems in ieee80211_assoc_success()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 Oct 2019 11:52:42 +0000 (12:52 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 8 Nov 2019 09:18:31 +0000 (10:18 +0100)
commitf61d7884cef8f1a46ed676adac313b7b53211a8a
treea4b4b50bba9083a93de5cb6c3b2070f30e4a8b5a
parent5d8983c8c3b5d7ec3326c75814e77fe167911676
mac80211: don't re-parse elems in ieee80211_assoc_success()

We've already parsed the same data in the caller, so we can
pass it. The only thing is that we might fill in more details
in ieee80211_assoc_success(), but that doesn't bother the
caller, so it's fine to do even when we share the parsed data.

This reduces the stack space usage of the call stack here,
Arnd reported it had grown above the 1024 byte warning limit.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20191028125240.cb7661671bd2.I757c8752bf4f2f35e54f5e0a2c0a9cd9216c3d8b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c