mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
Merge "qcacmn: Check to validate wmi tartget_type"
This commit is contained in:
commit
b47e07d77e
1 changed files with 4 additions and 0 deletions
|
|
@ -2193,6 +2193,10 @@ void *wmi_unified_attach(void *scn_handle,
|
|||
param->rx_ops->wma_process_fw_event_handler_cbk;
|
||||
wmi_handle->target_type = param->target_type;
|
||||
soc->target_type = param->target_type;
|
||||
|
||||
if (param->target_type >= WMI_MAX_TARGET_TYPE)
|
||||
goto error;
|
||||
|
||||
if (wmi_attach_register[param->target_type]) {
|
||||
wmi_attach_register[param->target_type](wmi_handle);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue