Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263533
b: refs/heads/master
c: 687beaa
h: refs/heads/master
i:
  263531: 3be6528
v: v3
  • Loading branch information
Peter Hurley authored and Gustavo F. Padovan committed Aug 11, 2011
1 parent 1caef51 commit 463267f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: ff062ea109217329b88693bc9081da893eb8b71b
refs/heads/master: 687beaa0d1d937c327e2f97b4b4fa6c23ca70624
11 changes: 6 additions & 5 deletions trunk/net/bluetooth/cmtp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,16 +382,17 @@ int cmtp_add_connection(struct cmtp_connadd_req *req, struct socket *sock)

if (!(session->flags & (1 << CMTP_LOOPBACK))) {
err = cmtp_attach_device(session);
if (err < 0)
goto detach;
if (err < 0) {
atomic_inc(&session->terminate);
wake_up_process(session->task);
up_write(&cmtp_session_sem);
return err;
}
}

up_write(&cmtp_session_sem);
return 0;

detach:
cmtp_detach_device(session);

unlink:
__cmtp_unlink_session(session);

Expand Down

0 comments on commit 463267f

Please sign in to comment.