CAPI: Fix racy capi_read
authorJan Kiszka <jan.kiszka@web.de>
Mon, 8 Feb 2010 10:12:21 +0000 (10:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 00:01:25 +0000 (16:01 -0800)
commit28a1dbb6f7feade304f43798feb15f6978516624
treed21dbbcfa1d9a4ed76ad982cc57970e2eeb966f8
parent54f0fad3d8414cf770c1cf25a1d98fcaec899b5a
CAPI: Fix racy capi_read

capi_read still used interruptible_sleep_on, risking to miss a wakeup
this way. Convert it to wait_event_interruptible.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/capi.c