Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291051
b: refs/heads/master
c: b3fb611
h: refs/heads/master
i:
  291049: b7a1611
  291047: 97b563e
v: v3
  • Loading branch information
Andrei Emeltchenko authored and Johan Hedberg committed Feb 23, 2012
1 parent 4e48c4f commit 71f1e55
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: 6be3655552ee49aa2b5fd20fa1b08f28d0feac86
refs/heads/master: b3fb611ec7b76048cb14600e9a5a9b57e5d913da
8 changes: 4 additions & 4 deletions trunk/net/bluetooth/l2cap_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ static int l2cap_sock_connect(struct socket *sock, struct sockaddr *addr, int al

err = l2cap_chan_connect(chan, la.l2_psm, la.l2_cid, &la.l2_bdaddr);
if (err)
goto done;
return err;

lock_sock(sk);

err = bt_sock_wait_state(sk, BT_CONNECTED,
sock_sndtimeo(sk, flags & O_NONBLOCK));
done:
if (sock_owned_by_user(sk))
release_sock(sk);

release_sock(sk);

return err;
}

Expand Down

0 comments on commit 71f1e55

Please sign in to comment.