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

Commit 7644d63d authored by Tomas Winkler's avatar Tomas Winkler Committed by Marcel Holtmann
Browse files

Bluetooth: Fix TX error path in btsdio driver



This patch fixes accumulating of the header in case packet was requeued
in the error path.

Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 6a88adf2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -91,6 +91,7 @@ static int btsdio_tx_packet(struct btsdio_data *data, struct sk_buff *skb)

	err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len);
	if (err < 0) {
		skb_pull(skb, 4);
		sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL);
		return err;
	}