diff options
author | Miri Korenblit | 2024-05-13 13:27:12 +0300 |
---|---|---|
committer | Johannes Berg | 2024-05-29 15:30:13 +0200 |
commit | 60d62757df30b74bf397a2847a6db7385c6ee281 (patch) | |
tree | 9de8eeb904e0e4159c6b5a69a5822bf5a23a52aa /drivers/acpi | |
parent | 989830d1cf16bd149bf0690d889a9caef95fb5b1 (diff) |
wifi: iwlwifi: mvm: check n_ssids before accessing the ssids
In some versions of cfg80211, the ssids poinet might be a valid one even
though n_ssids is 0. Accessing the pointer in this case will cuase an
out-of-bound access. Fix this by checking n_ssids first.
Fixes: c1a7515393e4 ("iwlwifi: mvm: add adaptive dwell support")
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Link: https://msgid.link/20240513132416.6e4d1762bf0d.I5a0e6cc8f02050a766db704d15594c61fe583d45@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions