V4L/DVB (10943): cx88: Prevent general protection fault on rmmod
authorJean Delvare <khali@linux-fr.org>
Sat, 7 Mar 2009 10:42:12 +0000 (07:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:17 +0000 (12:43 -0300)
commit569b7ec73abf576f9a9e4070d213aadf2cce73cb
treeb84ef4286f669db0e072745f0ceb99bd619035b2
parentfb6991d417a9f06978119ea597dc5955b3eb784d
V4L/DVB (10943): cx88: Prevent general protection fault on rmmod

When unloading the cx8800 driver I sometimes get a general protection
fault. Analysis revealed a race in cx88_ir_stop(). It can be solved by
using a delayed work instead of a timer for infrared input polling.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx88/cx88-input.c