mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacld-3.0: Fix buffer overflow in hdd_hard_start_xmit
Check STAID value returned by hdd_get_transmit_sta_id against MAX_STA, before accessing array based on STAID index. Change-Id: I4ac88e3d95f425ddc3a8690ef5333e0a4e67d328 CRs-Fixed: 1050083
This commit is contained in:
parent
d17105a98b
commit
209d09342f
1 changed files with 1 additions and 1 deletions
|
|
@ -390,7 +390,7 @@ int hdd_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
STAId = HDD_WLAN_INVALID_STA_ID;
|
||||
|
||||
hdd_get_transmit_sta_id(pAdapter, pDestMacAddress, &STAId);
|
||||
if (STAId == HDD_WLAN_INVALID_STA_ID) {
|
||||
if (STAId >= WLAN_MAX_STA_COUNT) {
|
||||
hddLog(LOGE, "Invalid station id, transmit operation suspended");
|
||||
goto drop_pkt;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue