V4L/DVB (10938): em28xx: Prevent general protection fault on rmmod
authorJean Delvare <khali@linux-fr.org>
Sat, 7 Mar 2009 10:43:01 +0000 (07:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:17 +0000 (12:43 -0300)
commitf263bac9f7181df80b732b7bc11a7a4e38ca962f
tree8f764ca109e26828f05acbcb49ce3c9f19f6c2dc
parentc61402bae843f1f7ec29a6fe81681be21c3d201c
V4L/DVB (10938): em28xx: Prevent general protection fault on rmmod

The removal of the timer which polls the infrared input is racy.
Replacing the timer with a delayed work solves the problem.

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