diff options
author | Johannes Stezenbach <devnull@localhost> | 2005-12-11 00:20:26 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2005-12-11 00:20:26 +0000 |
commit | e2b807fcde39d97d6f5274afdb56c591aeaf28b4 (patch) | |
tree | 00f67e4378c5ca37694b0ee3784f2b83e4c97386 | |
parent | 26c9b0696e0f2c7d23756f0e35b38005e237a03c (diff) | |
download | mediapointer-dvb-s2-e2b807fcde39d97d6f5274afdb56c591aeaf28b4.tar.gz mediapointer-dvb-s2-e2b807fcde39d97d6f5274afdb56c591aeaf28b4.tar.bz2 |
[PATCH] Fix an OOPS is CinergyT2
From: Dmitry Torokhov <dtor@mail.ru>
kernel-sync
Fix an OOPS is CinergyT2 driver when registering IR remote
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | linux/drivers/media/dvb/cinergyT2/cinergyT2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c index fd1c0a41f..c610d3789 100644 --- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c +++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c @@ -806,7 +806,7 @@ static int cinergyt2_register_rc(struct cinergyt2 *cinergyt2) input_dev->name = DRIVER_NAME " remote control"; input_dev->phys = cinergyt2->phys; input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP); - for (i = 0; ARRAY_SIZE(rc_keys); i += 3) + for (i = 0; i < ARRAY_SIZE(rc_keys); i += 3) set_bit(rc_keys[i + 2], input_dev->keybit); input_dev->keycodesize = 0; input_dev->keycodemax = 0; |