[BLUETOOTH] rfcomm_worker(): fix wakeup race
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 26 Apr 2007 08:41:01 +0000 (01:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Apr 2007 08:41:01 +0000 (01:41 -0700)
commit74da9d88bf5ffd31aed61a0b19519684ad744ded
tree601509eaf04f387578ddc72015c0d7c62709e72a
parent9198d2220d29b87ac3a05a3b791c50bb8a014d63
[BLUETOOTH] rfcomm_worker(): fix wakeup race

Set TASK_INTERRUPTIBLE prior to testing the flag to avoid missed wakeups.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bluetooth/rfcomm/core.c