mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
Merge "qcacld-3.0: Do check for datalen in wma_process_uft_event" into wlan-cld3.driver.lnx.2.0-dev
This commit is contained in:
commit
72709aaeec
1 changed files with 6 additions and 0 deletions
|
|
@ -4141,6 +4141,12 @@ wma_process_utf_event(WMA_HANDLE handle, uint8_t *datap, uint32_t dataplen)
|
|||
data = param_buf->data;
|
||||
datalen = param_buf->num_data;
|
||||
|
||||
if (datalen < sizeof(segHdrInfo)) {
|
||||
WMA_LOGE("message size %d is smaller than struct seg_hdr_info",
|
||||
datalen);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
segHdrInfo = *(struct seg_hdr_info *) &(data[0]);
|
||||
|
||||
wma_handle->utf_event_info.currentSeq = (segHdrInfo.segmentInfo & 0xF);
|
||||
|
|
|
|||
Loading…
Reference in a new issue