Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-modules-rtl8723au: Commit

external/modules/rtl8723au


Commit MetaInfo

Revisiond30225b32e96dc8b43cd81c4f0478fa0880a8abd (tree)
Time2014-03-13 06:32:15
AuthorLarry Finger <Larry.Finger@lwfi...>
CommiterLarry Finger

Log Message

Add check for psta->aid out of bounds.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>

Change Summary

Incremental Difference

--- a/core/rtw_sta_mgt.c
+++ b/core/rtw_sta_mgt.c
@@ -528,6 +528,10 @@ _func_enter_;
528528
529529 #ifdef CONFIG_NATIVEAP_MLME
530530
531+ if (psta->aid > 31) {
532+ pr_err("***** psta->aid (%d) out of bounds\n", psta->aid);
533+ return _FAIL;
534+ }
531535 pstapriv->sta_dz_bitmap &=~BIT(psta->aid);
532536 pstapriv->tim_bitmap &=~BIT(psta->aid);
533537
Show on old repository browser