mirror of
https://github.com/drygdryg/rtl8188eus.git
synced 2025-04-29 10:47:17 +09:00
Add check for psta->aid out of bounds.
This commit is contained in:
parent
bc1d897c54
commit
b6bd52d317
@ -775,6 +775,10 @@ u32 rtw_free_stainfo(_adapter *padapter , struct sta_info *psta)
|
|||||||
pstapriv->sta_aid[psta->cmn.aid - 1] = NULL;
|
pstapriv->sta_aid[psta->cmn.aid - 1] = NULL;
|
||||||
psta->cmn.aid = 0;
|
psta->cmn.aid = 0;
|
||||||
}
|
}
|
||||||
|
if (psta->aid > 31) {
|
||||||
|
pr_err("***** psta->aid (%d) out of bounds\n", psta->aid);
|
||||||
|
return _FAIL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_NATIVEAP_MLME */
|
#endif /* CONFIG_NATIVEAP_MLME */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user