]> Pileus Git - ~andy/linux/commit
Bluetooth: hidp: test "terminate" before sleeping
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 6 Apr 2013 18:28:41 +0000 (20:28 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 17 Apr 2013 05:47:55 +0000 (02:47 -0300)
commite3492dc3760ceb981a0bb9992c249ba151b6f61d
treec7e2fa6b5fb9a3715fb1d0a0b56bca85054ed302
parentdcc07647f17836ecf9f4c54e44624b048ab8c297
Bluetooth: hidp: test "terminate" before sleeping

The "terminate" flag is guaranteed to be set before the session terminates
and the handlers are woken up. Hence, we need to add it to the
sleep-condition.

Note that testing the flags is not enough as nothing prevents us from
setting the flags again after the session-handler terminated.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hidp/core.c