|
@@ -3873,9 +3873,10 @@ static QDF_STATUS send_setup_install_key_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
wmi_mtrace(WMI_VDEV_INSTALL_KEY_CMDID, cmd->vdev_id, 0);
|
|
|
status = wmi_unified_cmd_send(wmi_handle, buf, len,
|
|
|
WMI_VDEV_INSTALL_KEY_CMDID);
|
|
|
- if (QDF_IS_STATUS_ERROR(status))
|
|
|
+ if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
+ qdf_mem_zero(wmi_buf_data(buf), len);
|
|
|
wmi_buf_free(buf);
|
|
|
-
|
|
|
+ }
|
|
|
return status;
|
|
|
}
|
|
|
|