OSDN Git Service
(root)
/
android-x86
/
external-modules-rtl8723au.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f17f1d6
)
Add check for psta->aid out of bounds.
author
Larry Finger
<Larry.Finger@lwfinger.net>
Wed, 12 Mar 2014 21:32:15 +0000
(16:32 -0500)
committer
Larry Finger
<Larry.Finger@lwfinger.net>
Wed, 12 Mar 2014 21:32:15 +0000
(16:32 -0500)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
core/rtw_sta_mgt.c
patch
|
blob
|
history
diff --git
a/core/rtw_sta_mgt.c
b/core/rtw_sta_mgt.c
index
9a0832a
..
f4f7ecc
100644
(file)
--- a/
core/rtw_sta_mgt.c
+++ b/
core/rtw_sta_mgt.c
@@
-528,6
+528,10
@@
_func_enter_;
#ifdef CONFIG_NATIVEAP_MLME
+ if (psta->aid > 31) {
+ pr_err("***** psta->aid (%d) out of bounds\n", psta->aid);
+ return _FAIL;
+ }
pstapriv->sta_dz_bitmap &=~BIT(psta->aid);
pstapriv->tim_bitmap &=~BIT(psta->aid);