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

Commit 921b0c1c authored by Ashish Jain's avatar Ashish Jain Committed by Bala Kishore Pati
Browse files

ASoC: bg: Fix double free of list node



Avoid double free of list node in BG packetizer.

Change-Id: I695834a0b06df270fc80031ca96d7e25c2d89a33
Signed-off-by: default avatarAshish Jain <ashishj@codeaurora.org>
parent 0f04c7ee
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -144,7 +144,6 @@ static int pktzr_send_pkt(void *payload, uint32_t size, void *rsp,
		rc = bg_cdc_glink_write(ppriv->ch_info[0], pkt_hdr, pkt_size);
	if (rc < 0) {
		pr_err("%s: Failed to send command over glink\n", __func__);
		list_del(&pnode->list);
		goto exit;
	}