Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194879
b: refs/heads/master
c: 2b0b05d
h: refs/heads/master
i:
  194877: a40fc27
  194875: d5a6f8f
  194871: df7b456
  194863: 6053ebe
  194847: ac87118
  194815: d885444
v: v3
  • Loading branch information
Marcel Holtmann committed May 10, 2010
1 parent ed954f3 commit c03937e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 7b767cad296d17cfe071734f71a3b7b479534c8c
refs/heads/master: 2b0b05ddc04b6d45e71cd36405df512075786f1e
8 changes: 4 additions & 4 deletions trunk/net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ static int __l2cap_wait_ack(struct sock *sk)
int err = 0;
int timeo = HZ/5;

add_wait_queue(sk->sk_sleep, &wait);
add_wait_queue(sk_sleep(sk), &wait);
while ((l2cap_pi(sk)->unacked_frames > 0 && l2cap_pi(sk)->conn)) {
set_current_state(TASK_INTERRUPTIBLE);

Expand All @@ -1269,7 +1269,7 @@ static int __l2cap_wait_ack(struct sock *sk)
break;
}
set_current_state(TASK_RUNNING);
remove_wait_queue(sk->sk_sleep, &wait);
remove_wait_queue(sk_sleep(sk), &wait);
return err;
}

Expand Down Expand Up @@ -3544,7 +3544,7 @@ static void l2cap_busy_work(struct work_struct *work)

lock_sock(sk);

add_wait_queue(sk->sk_sleep, &wait);
add_wait_queue(sk_sleep(sk), &wait);
while ((skb = skb_peek(BUSY_QUEUE(sk)))) {
set_current_state(TASK_INTERRUPTIBLE);

Expand Down Expand Up @@ -3603,7 +3603,7 @@ static void l2cap_busy_work(struct work_struct *work)
pi->conn_state &= ~L2CAP_CONN_RNR_SENT;

set_current_state(TASK_RUNNING);
remove_wait_queue(sk->sk_sleep, &wait);
remove_wait_queue(sk_sleep(sk), &wait);

release_sock(sk);
}
Expand Down

0 comments on commit c03937e

Please sign in to comment.