diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-09-21 02:44:58 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-10-07 15:24:16 +0200 |
commit | 78a6a43aaf87180ec7425a2a90468e1b4d09a1ec (patch) | |
tree | 68b4db19f80072457ebfe34809346b8f4a6029c1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1177aaa7fe9373c762cd5bf5f5de8517bac989d5 (diff) |
wifi: mac80211: mlme: fix null-ptr deref on failed assoc
If association to an AP without a link 0 fails, then we crash in
tracing because it assumes that either ap_mld_addr or link 0 BSS
is valid, since we clear sdata->vif.valid_links and then don't
add the ap_mld_addr to the struct.
Since we clear also sdata->vif.cfg.ap_addr, keep a local copy of
it and assign it earlier, before clearing valid_links, to fix
this.
Fixes: 81151ce462e5 ("wifi: mac80211: support MLO authentication/association with one link")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions