diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-11-30 14:17:18 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-11-30 14:17:18 +0300 |
commit | 7644d63d1348ec044ccd8f775fefe5eb7cbcac69 (patch) | |
tree | b3ec4e0ae8afa474244bf00b2255959dfbd5e7a7 /drivers/bluetooth/btsdio.c | |
parent | 6a88adf2adf5d6a3b759c2e114da4c5266ca3972 (diff) | |
download | linux-7644d63d1348ec044ccd8f775fefe5eb7cbcac69.tar.xz |
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>
Diffstat (limited to 'drivers/bluetooth/btsdio.c')
-rw-r--r-- | drivers/bluetooth/btsdio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c index cda6c7cc944b..f2ada0c65486 100644 --- a/drivers/bluetooth/btsdio.c +++ b/drivers/bluetooth/btsdio.c @@ -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; } |