Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278579
b: refs/heads/master
c: 039d957
h: refs/heads/master
i:
  278577: 1f57608
  278575: 2857712
v: v3
  • Loading branch information
Szymon Janc authored and Gustavo F. Padovan committed Nov 16, 2011
1 parent ab4619f commit dd57d37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aef89f214e4306153c7913b9854456595153f5d8
refs/heads/master: 039d9572f11ef46ff2743798f2170a888d393ec6
13 changes: 5 additions & 8 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3562,14 +3562,10 @@ static int l2cap_add_to_srej_queue(struct l2cap_chan *chan, struct sk_buff *skb,
bt_cb(skb)->sar = sar;

next_skb = skb_peek(&chan->srej_q);
if (!next_skb) {
__skb_queue_tail(&chan->srej_q, skb);
return 0;
}

tx_seq_offset = __seq_offset(chan, tx_seq, chan->buffer_seq);

do {
while (next_skb) {
if (bt_cb(next_skb)->tx_seq == tx_seq)
return -EINVAL;

Expand All @@ -3582,9 +3578,10 @@ static int l2cap_add_to_srej_queue(struct l2cap_chan *chan, struct sk_buff *skb,
}

if (skb_queue_is_last(&chan->srej_q, next_skb))
break;

} while ((next_skb = skb_queue_next(&chan->srej_q, next_skb)));
next_skb = NULL;
else
next_skb = skb_queue_next(&chan->srej_q, next_skb);
}

__skb_queue_tail(&chan->srej_q, skb);

Expand Down

0 comments on commit dd57d37

Please sign in to comment.