[media] radio-cadet: avoid interruptible_sleep_on race
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 10 Feb 2014 10:21:36 +0000 (07:21 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 28 Feb 2014 17:30:30 +0000 (14:30 -0300)
commitce0ede2c06202dace68a2f0401ebaafdaa2720d2
treebdbf46019b5a3ffb54ea5f47d449ca973152da74
parent2dfb1c939cf7fa03aaa36e7c7da02dd105c6b273
[media] radio-cadet: avoid interruptible_sleep_on race

interruptible_sleep_on is racy and going away. This replaces
one use in the radio-cadet driver with a wait_event_interruptible
call. Special care was taken that accesses to the rdsin and rdsout
indices are always done with dev->lock held.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/radio/radio-cadet.c