V4L/DVB (10939): ir-kbd-i2c: Prevent general protection fault on rmmod
authorJean Delvare <khali@linux-fr.org>
Sat, 7 Mar 2009 10:43:43 +0000 (07:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:17 +0000 (12:43 -0300)
commitc1089bdc07f06b90f0bc50d0789c2a4833097df7
tree61e9ffa2bf7d1f7231730edef9751ab45c0ca1ba
parentf263bac9f7181df80b732b7bc11a7a4e38ca962f
V4L/DVB (10939): ir-kbd-i2c: 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/ir-kbd-i2c.c
include/media/ir-kbd-i2c.h