]> git.baikalelectronics.ru Git - kernel.git/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)
commit2fde07e4add49d1728cf7dc78a6941681ed699e3
treec7e2fa6b5fb9a3715fb1d0a0b56bca85054ed302
parentab489153d06ed104afe9c448355fc0d32c3625ff
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