1
linux/drivers/bluetooth
Wending Weng d2e353f7c3 Bluetooth: Fix false errors from bcsp_pkt_cull function
The error message "Removed only %u out of %u pkts" is printed when multiple
to be acked packets are queued.

    if (i++ >= pkts_to_be_removed)
            break;

This will break out of the loop and increase the counter i when
i==pkts_to_be_removed and the loop ends up with i=pkts_to_be_removed+1.

The following line

    if (i != pkts_to_be_removed) {
            BT_ERR("Removed only %u out of %u pkts", i, pkts_to_be_removed);
    }

will then display the false message.

The counter i must not increase on the same statement.

Signed-off-by: Wending Weng <wweng@rheinmetall.ca>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2009-08-24 13:32:32 -07:00
..
bcm203x.c Bluetooth: Enable per-module dynamic debug messages 2008-11-30 12:17:28 +01:00
bfusb.c Bluetooth: Remove some pointless conditionals before kfree_skb() 2009-02-27 06:14:50 +01:00
bluecard_cs.c pcmcia: IRQ_TYPE_EXCLUSIVE is long obsoleted 2008-10-17 23:07:10 +02:00
bpa10x.c Bluetooth: Enable per-module dynamic debug messages 2008-11-30 12:17:28 +01:00
bt3c_cs.c Bluetooth: Eliminate a sparse warning in bt3c driver 2009-02-27 06:14:35 +01:00
btmrvl_debugfs.c Bluetooth: Remove pointless casts from Marvell debugfs support 2009-08-22 14:25:33 -07:00
btmrvl_drv.h Bluetooth: Remove private device name of Marvell SDIO driver 2009-08-22 14:25:34 -07:00
btmrvl_main.c Bluetooth: Remove Enter/Leave debug statements from Marvell driver 2009-08-22 14:25:34 -07:00
btmrvl_sdio.c Bluetooth: Add missing kmalloc NULL tests to Marvell driver 2009-08-22 14:33:22 -07:00
btmrvl_sdio.h Bluetooth: Fix incorrect alignment in Marvell BT-over-SDIO driver 2009-08-22 14:25:34 -07:00
btsdio.c Bluetooth: Enable per-module dynamic debug messages 2008-11-30 12:17:28 +01:00
btuart_cs.c pcmcia: IRQ_TYPE_EXCLUSIVE is long obsoleted 2008-10-17 23:07:10 +02:00
btusb.c Bluetooth: Improve USB driver throughput by increasing the frame size 2009-08-22 14:12:37 -07:00
dtl1_cs.c Bluetooth: Fix issue with uninitialized nsh.type in DTL-1 driver 2009-06-14 15:40:34 +02:00
hci_bcsp.c Bluetooth: Fix false errors from bcsp_pkt_cull function 2009-08-24 13:32:32 -07:00
hci_h4.c Bluetooth: Remove some pointless conditionals before kfree_skb() 2009-02-27 06:14:50 +01:00
hci_ldisc.c tty: fix bluetooth scribbling on low latency flags 2009-06-11 08:51:05 -07:00
hci_ll.c Bluetooth: Remove some pointless conditionals before kfree_skb() 2009-02-27 06:14:50 +01:00
hci_uart.h
hci_vhci.c headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
Kconfig Bluetooth: Fix Kconfig for Marvell Bluetooth driver 2009-08-22 14:25:33 -07:00
Makefile Bluetooth: Fix compilation of Marvell driver without debugfs 2009-08-22 14:25:33 -07:00