mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacld-3.0: Add proper NULL check in wma_link_status_event_handler
Add proper NULL check for ht_info before accessing the structure. This field is sent as a part of the event from FW and could be NULL. Change-Id: I55dd7dcbe4ecdafe6a97ebcf2c7d9f08af30d8a2 CRs-Fixed: 2615175
This commit is contained in:
parent
56eec3d519
commit
0d409ac1f0
1 changed files with 5 additions and 0 deletions
|
|
@ -2828,6 +2828,11 @@ int wma_link_status_event_handler(void *handle, uint8_t *cmd_param_info,
|
|||
param_buf->fixed_param;
|
||||
ht_info = (wmi_vdev_rate_ht_info *) param_buf->ht_info;
|
||||
|
||||
if (!ht_info) {
|
||||
wma_err("Invalid ht_info");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
WMA_LOGD("num_vdev_stats: %d", event->num_vdev_stats);
|
||||
|
||||
if (event->num_vdev_stats > ((WMI_SVC_MSG_MAX_SIZE -
|
||||
|
|
|
|||
Loading…
Reference in a new issue