upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:45 +0000 (11:54 +0900)
commit4915abd4f03d2849228710eb3f7eaca11e2b82d3
treebbcb7a6ee51fa558c58f566b3295b9d91936fcad
parent2e5eeb3e099eaeed4bcab823409bfa4723f8fe1c
upstream: [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