mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-01-19 09:11:34 +00:00
Add check for psta->cmn.aid out of bounds.
This commit is contained in:
parent
467f8ff546
commit
d4dd7bdc54
@ -757,6 +757,11 @@ u32 rtw_free_stainfo(_adapter *padapter , struct sta_info *psta)
|
||||
|
||||
#ifdef CONFIG_NATIVEAP_MLME
|
||||
|
||||
if (psta->cmn.aid > 31) {
|
||||
pr_err("***** psta->aid (%d) out of bounds\n", psta->cmn.aid);
|
||||
return _FAIL;
|
||||
}
|
||||
|
||||
if (pmlmeinfo->state == _HW_STATE_AP_) {
|
||||
pstapriv->sta_dz_bitmap &= ~BIT(psta->cmn.aid);
|
||||
pstapriv->tim_bitmap &= ~BIT(psta->cmn.aid);
|
||||
|
Loading…
Reference in New Issue
Block a user