Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58249
b: refs/heads/master
c: 1c39858
h: refs/heads/master
i:
  58247: 82c95c9
v: v3
  • Loading branch information
David Woodhouse authored and Linus Torvalds committed Jul 7, 2007
1 parent 8716fd8 commit adc9daf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: d23cf676d0e9d1fdc066d2dcb7f8bc0e2d4c75bd
refs/heads/master: 1c39858b5dd46004b12c5acd26d8df346bef8a10
18 changes: 9 additions & 9 deletions trunk/net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,15 +581,6 @@ static int hidp_session(void *arg)

hidp_del_timer(session);

fput(session->intr_sock->file);

wait_event_timeout(*(ctrl_sk->sk_sleep),
(ctrl_sk->sk_state == BT_CLOSED), msecs_to_jiffies(500));

fput(session->ctrl_sock->file);

__hidp_unlink_session(session);

if (session->input) {
input_unregister_device(session->input);
session->input = NULL;
Expand All @@ -601,6 +592,15 @@ static int hidp_session(void *arg)
hid_free_device(session->hid);
}

fput(session->intr_sock->file);

wait_event_timeout(*(ctrl_sk->sk_sleep),
(ctrl_sk->sk_state == BT_CLOSED), msecs_to_jiffies(500));

fput(session->ctrl_sock->file);

__hidp_unlink_session(session);

up_write(&hidp_session_sem);

kfree(session);
Expand Down

0 comments on commit adc9daf

Please sign in to comment.