Skip to content

Commit

Permalink
[Bluetooth] Disconnect HID interrupt channel first
Browse files Browse the repository at this point in the history
The Bluetooth HID specification demands that the interrupt channel
shall be disconnected first. This is needed to pass the qualification
tests.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Marcel Holtmann authored and David S. Miller committed Oct 16, 2006
1 parent 4c67bc7 commit e86070c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,11 +510,11 @@ static int hidp_session(void *arg)
if (intr_sk->sk_state != BT_CONNECTED)
wait_event_timeout(*(ctrl_sk->sk_sleep), (ctrl_sk->sk_state == BT_CLOSED), HZ);

fput(session->ctrl_sock->file);
fput(session->intr_sock->file);

wait_event_timeout(*(intr_sk->sk_sleep), (intr_sk->sk_state == BT_CLOSED), HZ);

fput(session->intr_sock->file);
fput(session->ctrl_sock->file);

__hidp_unlink_session(session);

Expand Down

0 comments on commit e86070c

Please sign in to comment.