[PATCH] Fix an OOPS is CinergyT2
authorDmitry Torokhov <dtor_core@ameritech.net>
Sun, 20 Nov 2005 16:13:29 +0000 (11:13 -0500)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 20 Nov 2005 22:06:28 +0000 (14:06 -0800)
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>
drivers/media/dvb/cinergyT2/cinergyT2.c

index fb394a0d838c8df550b523eee0e17e7ad908cda2..336fc284fa523138d2bfd923146039ce8855db6a 100644 (file)
@@ -772,7 +772,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;