]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: fix NULL pointer deref with non-MLD STA
authorJohannes Berg <johannes.berg@intel.com>
Mon, 18 Jul 2022 07:14:30 +0000 (09:14 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 22 Jul 2022 12:27:47 +0000 (14:27 +0200)
commit3775fefaa58e69b80a30d3f4eb89c04e5e1eb25d
tree18b873381272941f08983c1a6b500be7ab3ad2bd
parent58d4247963215b0b0380f6b7ba21a589e062be70
wifi: mac80211: fix NULL pointer deref with non-MLD STA

If we have a non-MLD STA on an AP MLD, we crash while
adding the station. Fix that, in this case we need to
use the STA's address also on the link data structure.

Fixes: 4d5d1e75e8e3 ("wifi: mac80211: fix up link station creation/insertion")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c