Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284311
b: refs/heads/master
c: ee65d19
h: refs/heads/master
i:
  284309: 1128905
  284307: ac3e70a
  284303: 1805262
v: v3
  • Loading branch information
Gustavo F. Padovan committed Jan 3, 2012
1 parent 4323d63 commit ad41423
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: 393432cd8dc02b88a00decd495913643aa5ff705
refs/heads/master: ee65d19e25c7ace7792bcd289776b2e24f4bf059
8 changes: 4 additions & 4 deletions trunk/net/bluetooth/sco.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_le
goto done;
}

write_lock_bh(&sco_sk_list.lock);
write_lock(&sco_sk_list.lock);

if (bacmp(src, BDADDR_ANY) && __sco_get_sock_by_addr(src)) {
err = -EADDRINUSE;
Expand All @@ -492,7 +492,7 @@ static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_le
sk->sk_state = BT_BOUND;
}

write_unlock_bh(&sco_sk_list.lock);
write_unlock(&sco_sk_list.lock);

done:
release_sock(sk);
Expand Down Expand Up @@ -965,14 +965,14 @@ static int sco_debugfs_show(struct seq_file *f, void *p)
struct sock *sk;
struct hlist_node *node;

read_lock_bh(&sco_sk_list.lock);
read_lock(&sco_sk_list.lock);

sk_for_each(sk, node, &sco_sk_list.head) {
seq_printf(f, "%s %s %d\n", batostr(&bt_sk(sk)->src),
batostr(&bt_sk(sk)->dst), sk->sk_state);
}

read_unlock_bh(&sco_sk_list.lock);
read_unlock(&sco_sk_list.lock);

return 0;
}
Expand Down

0 comments on commit ad41423

Please sign in to comment.