mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
qcacld-3.0: Fix firmware assert completion handling
Hif needs to guarantee that it frees the buffers that it doesn't pass to upper layers. Change-Id: I816d0a1b19a5a0c00e9669c18dfdf427c102c911 CRs-Fixed: 958124
This commit is contained in:
parent
6ccc86afd8
commit
f709c67be7
1 changed files with 6 additions and 6 deletions
|
|
@ -694,9 +694,9 @@ hif_pci_ce_send_done(struct CE_handle *copyeng, void *ce_context,
|
|||
if (transfer_context != CE_SENDLIST_ITEM_CTXT) {
|
||||
if (hif_state->scn->target_status
|
||||
== OL_TRGET_STATUS_RESET)
|
||||
return;
|
||||
|
||||
msg_callbacks->txCompletionHandler(
|
||||
cdf_nbuf_free(transfer_context);
|
||||
else
|
||||
msg_callbacks->txCompletionHandler(
|
||||
msg_callbacks->Context,
|
||||
transfer_context, transfer_id,
|
||||
toeplitz_hash_result);
|
||||
|
|
@ -762,9 +762,9 @@ hif_pci_ce_recv_data(struct CE_handle *copyeng, void *ce_context,
|
|||
atomic_inc(&pipe_info->recv_bufs_needed);
|
||||
hif_post_recv_buffers_for_pipe(pipe_info);
|
||||
if (hif_state->scn->target_status == OL_TRGET_STATUS_RESET)
|
||||
return;
|
||||
|
||||
hif_ce_do_recv(msg_callbacks, transfer_context,
|
||||
cdf_nbuf_free(transfer_context);
|
||||
else
|
||||
hif_ce_do_recv(msg_callbacks, transfer_context,
|
||||
nbytes, pipe_info);
|
||||
|
||||
/* Set up force_break flag if num of receices reaches
|
||||
|
|
|
|||
Loading…
Reference in a new issue