Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 615c4da4 authored by Amar Singhal's avatar Amar Singhal Committed by nshrivas
Browse files

qcacmn: Check for NULL ptr in wmi API

Wmi_hdl can be NULL in call to wmi_unified_ipa_offload_control_cmd. Do
a check for the same.

Change-Id: I2629e03a812cbafdfd1494798ad7d8b986ceec75
CRs-Fixed: 2316859
parent 4b948a69
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1727,6 +1727,9 @@ QDF_STATUS wmi_unified_ipa_offload_control_cmd(void *wmi_hdl,
{
	wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;

	if (!wmi_handle)
		return QDF_STATUS_E_FAILURE;

	if (wmi_handle->ops->send_ipa_offload_control_cmd)
		return wmi_handle->ops->send_ipa_offload_control_cmd(wmi_handle,
			    ipa_offload);