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

Commit 49794a3d authored by Houston Hoffman's avatar Houston Hoffman Committed by Akash Patel
Browse files

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
parent 06bc4f52
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -694,8 +694,8 @@ 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;

				cdf_nbuf_free(transfer_context);
			else
				msg_callbacks->txCompletionHandler(
					msg_callbacks->Context,
					transfer_context, transfer_id,
@@ -762,8 +762,8 @@ 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;

			cdf_nbuf_free(transfer_context);
		else
			hif_ce_do_recv(msg_callbacks, transfer_context,
				nbytes, pipe_info);