public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* patch for hci_bcsp.c(2.6.31.-rc1)
@ 2009-08-19 13:19 Weng, Wending
  2009-08-22 20:05 ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Weng, Wending @ 2009-08-19 13:19 UTC (permalink / raw)
  To: 'linux-bluetooth@vger.kernel.org'

>From 69596948eb2172080bb950d99dc90678ead08305 Mon Sep 17 00:00:00 2001
From: root <root@SBC_PC_3.localdomain>
Date: Wed, 19 Aug 2009 08:59:56 -0400
Subject: [PATCH] The routine bcsp_pkt_cull doesn't ack the packets properly
if multiple packets are queued. The counter i must increase before
doing comparison.

Signed-off-by: Wending Weng <wweng@rheinmetall.ca>

---
 drivers/bluetooth/hci_bcsp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth/hci_bcsp.c
index 894b2cb..cd30f39 100644
--- a/drivers/bluetooth/hci_bcsp.c
+++ b/drivers/bluetooth/hci_bcsp.c
@@ -373,7 +373,7 @@ static void bcsp_pkt_cull(struct bcsp_struct *bcsp)

        i = 0;
        skb_queue_walk_safe(&bcsp->unack, skb, tmp) {
-               if (i++ >= pkts_to_be_removed)
+               if (++i >= pkts_to_be_removed)
                        break;

                __skb_unlink(skb, &bcsp->unack);
--
1.5.2.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-08-24 20:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-19 13:19 patch for hci_bcsp.c(2.6.31.-rc1) Weng, Wending
2009-08-22 20:05 ` Marcel Holtmann
2009-08-24 14:03   ` Weng, Wending
2009-08-24 17:19     ` Marcel Holtmann
2009-08-24 18:33       ` Weng, Wending
2009-08-24 18:37         ` Marcel Holtmann
2009-08-24 20:19           ` patch for hci_bcsp.c(bluetooth-testing) Weng, Wending
2009-08-24 20:34             ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox