Skip to content

Commit

Permalink
Bluetooth: Allow unsegmented SDU retries on sock_queue_rcv_skb failure
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Ruiyi Zhang authored and Gustavo F. Padovan committed Jun 8, 2011
1 parent 931749b commit 224f8af
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2928,11 +2928,7 @@ static int l2cap_ertm_reassembly_sdu(struct l2cap_chan *chan, struct sk_buff *sk
if (chan->conn_state & L2CAP_CONN_SAR_SDU)
goto drop;

err = sock_queue_rcv_skb(chan->sk, skb);
if (!err)
return err;

break;
return sock_queue_rcv_skb(chan->sk, skb);

case L2CAP_SDU_START:
if (chan->conn_state & L2CAP_CONN_SAR_SDU)
Expand Down

0 comments on commit 224f8af

Please sign in to comment.