qcacmn: Fix possible NULL pointer dereference
In son_ol_send_null(), check for the return value of GET_WMI_HDL_FROM_PSOC() before using it. Also, pass argument of type wmi_unified_t in calls to wmi_unified_stats_request_send(). Change-Id: Idfedae2fcbde6d18b1829adefcabac0adbc55859 CRs-Fixed: 2371368
This commit is contained in:

committed by
nshrivas

parent
604e249bc1
commit
0f2677d572
@@ -681,12 +681,10 @@ QDF_STATUS wmi_unified_sifs_trigger_send(void *wmi_hdl,
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
|
||||
*/
|
||||
QDF_STATUS wmi_unified_stats_request_send(void *wmi_hdl,
|
||||
uint8_t macaddr[IEEE80211_ADDR_LEN],
|
||||
struct stats_request_params *param)
|
||||
QDF_STATUS wmi_unified_stats_request_send(wmi_unified_t wmi_handle,
|
||||
uint8_t macaddr[IEEE80211_ADDR_LEN],
|
||||
struct stats_request_params *param)
|
||||
{
|
||||
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_stats_request_cmd)
|
||||
return wmi_handle->ops->send_stats_request_cmd(wmi_handle,
|
||||
macaddr, param);
|
||||
|
Reference in New Issue
Block a user