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

Commit 37d9e041 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: bam_dmux: Restore the skb to orginal in write_done"

parents 52f4acb1 c6482ce7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -839,6 +839,11 @@ static void bam_mux_write_done(struct work_struct *work)
	kfree(info);
	hdr = (struct bam_mux_hdr *)skb->data;
	DBG_INC_WRITE_CNT(skb->len);
	/* Restore skb for client */
	skb_pull(skb, sizeof(*hdr));
	if (hdr->pad_len)
		skb_trim(skb, skb->len - hdr->pad_len);

	event_data = (unsigned long)(skb);
	spin_lock_irqsave(&bam_ch[hdr->ch_id].lock, flags);
	bam_ch[hdr->ch_id].num_tx_pkts--;