mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
qcacmn: Free pkt in wmi_unified_cmd_send error path
The packet is allocated in wmi_unified_cmd_send so if it doesn't get sent or added to a queue it needs to be freed. Change-Id: I763824812d3c0510c53a70caf063568385b9bfc2 CRs-Fixed: 1079509
This commit is contained in:
parent
dd4da483c7
commit
ebc2bbce56
1 changed files with 2 additions and 0 deletions
|
|
@ -1843,6 +1843,8 @@ QDF_STATUS wmi_unified_cmd_send(wmi_unified_t wmi_handle, wmi_buf_t buf,
|
|||
qdf_atomic_dec(&wmi_handle->pending_cmds);
|
||||
QDF_TRACE(QDF_MODULE_ID_WMI, QDF_TRACE_LEVEL_ERROR,
|
||||
"%s %d, htc_send_pkt failed", __func__, __LINE__);
|
||||
qdf_mem_free(pkt);
|
||||
|
||||
}
|
||||
if (status)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue