]> git.baikalelectronics.ru Git - kernel.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)
commit7d940087b81377d3d1b79c2ba610eda5218528d2
treea4b4b50bba9083a93de5cb6c3b2070f30e4a8b5a
parentfef80c70ca5ccad087b68befd9384743dece9f7f
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