]> 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)
commit614eb48315f1d51075cd7728238916b2637af2a9
tree18b873381272941f08983c1a6b500be7ab3ad2bd
parentcb1d03bcf5ae50fd642ee88b07a4b6aaf88549d5
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: 726d9dd23090 ("wifi: mac80211: fix up link station creation/insertion")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c