Skip to content

Commit 7644d63

Browse files
Tomas Winklerholtmann
authored andcommitted
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: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent 6a88adf commit 7644d63

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/bluetooth/btsdio.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static int btsdio_tx_packet(struct btsdio_data *data, struct sk_buff *skb)
9191

9292
err = sdio_writesb(data->func, REG_TDAT, skb->data, skb->len);
9393
if (err < 0) {
94+
skb_pull(skb, 4);
9495
sdio_writeb(data->func, 0x01, REG_PC_WRT, NULL);
9596
return err;
9697
}

0 commit comments

Comments
 (0)