linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Allow unsegmented SDU retries on sock_queue_rcv_skb failure.
@ 2011-04-28 11:39 Ruiyi Zhang
  2011-05-05 16:30 ` Gustavo F. Padovan
  2011-05-06  4:44 ` [PATCH v2] " Ruiyi Zhang
  0 siblings, 2 replies; 6+ messages in thread
From: Ruiyi Zhang @ 2011-04-28 11:39 UTC (permalink / raw)
  To: padovan; +Cc: linux-bluetooth, Ruiyi Zhang

 In L2CAP_SDU_UNSEGMENTED case, if sock_queue_rcv_skb returns error,
 l2cap_ertm_reassembly_sdu should not return 0 so as to insert the
 skb into BUSY_QUEUE for later retries.


Signed-off-by: Ruiyi Zhang <Ruiyi.zhang@atheros.com>
---
 net/bluetooth/l2cap_core.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index ca27f3a..3b2f140 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -2784,8 +2784,7 @@ static int l2cap_ertm_reassembly_sdu(struct sock *sk, struct sk_buff *skb, u16 c
 			goto drop;
 
 		err = sock_queue_rcv_skb(sk, skb);
-		if (!err)
-			return err;
+		return err;
 
 		break;
 
-- 
1.7.1


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

end of thread, other threads:[~2011-05-13 18:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-28 11:39 [PATCH] Bluetooth: Allow unsegmented SDU retries on sock_queue_rcv_skb failure Ruiyi Zhang
2011-05-05 16:30 ` Gustavo F. Padovan
2011-05-06  4:44 ` [PATCH v2] " Ruiyi Zhang
2011-05-11 17:55   ` Gustavo F. Padovan
2011-05-13  5:07     ` [PATCH v3] " Ruiyi Zhang
2011-05-13 18:23       ` Gustavo F. Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).