V4L/DVB (10943): cx88: Prevent general protection fault on rmmod
authorJean Delvare <khali@linux-fr.org>
Tue, 2 Jun 2009 12:33:47 +0000 (14:33 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Jun 2009 03:01:34 +0000 (20:01 -0700)
commit2544b8905986f808751df99766ed6f04051ed098
tree6ab2a2faee2aa88235b266a424b3c39f917edfcb
parentc45dabcb311b0bba1c028d2ca5d6e94de65bee0a
V4L/DVB (10943): cx88: Prevent general protection fault on rmmod

commit 569b7ec73abf576f9a9e4070d213aadf2cce73cb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/cx88/cx88-input.c