mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
qcacld-3.0: Fix possible NULL pointer dereference
Validate the CSR session before accessing it as the session can be NULL for invalid session id. Change-Id: I090d75a44bb9e78cbf7f10ac08ccad9f664e6e06 CRs-Fixed: 2462598
This commit is contained in:
parent
73a516ba32
commit
1ba55bfa9b
1 changed files with 4 additions and 0 deletions
|
|
@ -11290,6 +11290,10 @@ void sme_update_he_cap_nss(mac_handle_t mac_handle, uint8_t session_id,
|
|||
sme_err("invalid Nss value %d", nss);
|
||||
}
|
||||
csr_session = CSR_GET_SESSION(mac_ctx, session_id);
|
||||
if (!csr_session) {
|
||||
sme_err("No session for id %d", session_id);
|
||||
return;
|
||||
}
|
||||
rx_mcs_map =
|
||||
mac_ctx->mlme_cfg->he_caps.dot11_he_cap.rx_he_mcs_map_lt_80;
|
||||
tx_mcs_map =
|
||||
|
|
|
|||
Loading…
Reference in a new issue