]> git.hungrycats.org Git - linux/commitdiff
Bluetooth: Fix TX error path in btsdio driver
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 30 Nov 2008 11:17:18 +0000 (12:17 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 20 Feb 2009 22:36:56 +0000 (14:36 -0800)
commit 7644d63d1348ec044ccd8f775fefe5eb7cbcac69 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/bluetooth/btsdio.c

index 58630cc1eff2f1047ed0049edcbb9c4e578d511f..c422e897c3b18ae774d12bef42be0c5bab12320c 100644 (file)
@@ -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;
        }