V4L/DVB (10943): cx88: Prevent general protection fault on rmmod
authorJean Delvare <khali@linux-fr.org>
Thu, 2 Apr 2009 12:53:01 +0000 (14:53 +0200)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:36:54 +0000 (10:36 -0700)
commit68ad5ef00850dfa866f1e55626ebcbbf196d0227
treef0bf1aa12b5d47be1b133bcba035372babfe5ccb
parent98bf3a0cf25dbd438500d9c9fcf583d7a2b97825
V4L/DVB (10943): cx88: Prevent general protection fault on rmmod

upstream commit: 569b7ec73abf576f9a9e4070d213aadf2cce73cb

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>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/media/video/cx88/cx88-input.c