summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-03-07 11:43:43 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 17:43:17 +0200
commitc1089bdc07f06b90f0bc50d0789c2a4833097df7 (patch)
tree61e9ffa2bf7d1f7231730edef9751ab45c0ca1ba /include/media
parentV4L/DVB (10938): em28xx: Prevent general protection fault on rmmod (diff)
downloadlinux-c1089bdc07f06b90f0bc50d0789c2a4833097df7.tar.xz
linux-c1089bdc07f06b90f0bc50d0789c2a4833097df7.zip
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>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/ir-kbd-i2c.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/media/ir-kbd-i2c.h b/include/media/ir-kbd-i2c.h
index 00fa57eb9fde..07963d705400 100644
--- a/include/media/ir-kbd-i2c.h
+++ b/include/media/ir-kbd-i2c.h
@@ -14,8 +14,7 @@ struct IR_i2c {
/* Used to avoid fast repeating */
unsigned char old;
- struct work_struct work;
- struct timer_list timer;
+ struct delayed_work work;
char phys[32];
int (*get_key)(struct IR_i2c*, u32*, u32*);
};