]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix CSA beacon allocation size
authorJohannes Berg <johannes.berg@intel.com>
Tue, 30 Oct 2018 08:17:45 +0000 (09:17 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2018 07:57:40 +0000 (08:57 +0100)
commit466bc7ecac42facad17df8c7ae4962a541400315
tree78f4a7bbf918086d214f5ddb5b2e1a81059b056f
parentcf0eef352ea4f1e6816d52f7781868dd74a1e797
mac80211: fix CSA beacon allocation size

If the FTM responder settings are changed simultaneously with
the CSA beacon, the buffer size allocated isn't sufficient and
we'll have a heap overrun. Fix this.

While at it, also clean up the ftm_responder assignment, doing
it only if ftm_responder is non-zero is valid as it's 0 to start
with, but not really useful to understand the code.

Fixes: 3d206427d53c ("mac80211: support FTM responder configuration/statistics")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c