1
0
mirror of https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git synced 2025-04-29 15:19:40 +02:00

rtw_mlme_ext: fix unhandled page fault

A subtraction of two unsigned numbers was compared to zero for a loop
terminating condition. If the numbers are not equal, the loop will continue
until the pointers go beyond the mapped memory region and cause an unhandled
page fault.
This commit is contained in:
C.\ Andy\ Martin 2017-05-05 21:03:21 -04:00
parent b018b446fb
commit 9c708bfa2d

View File

@ -12125,7 +12125,7 @@ u8 join_cmd_hdl(_adapter *padapter, u8 *pbuf)
}
i += (pIE->Length + 2);
} while (pnetwork->IELength - i > 0);
} while (pnetwork->IELength > i);
#if 0
if (padapter->registrypriv.wifi_spec) {
// for WiFi test, follow WMM test plan spec