]> Pileus Git - ~andy/linux/blobdiff - drivers/misc/sony-laptop.c
Merge branch 'merge-fixes' into devel
[~andy/linux] / drivers / misc / sony-laptop.c
index 70d5cc5969aa5e0f140f822439c1ceee962af900..02ff3d19b1ccaf40981c861e9977c43eea634f3f 100644 (file)
@@ -315,7 +315,7 @@ static void sony_laptop_report_input_event(u8 event)
                break;
 
        default:
-               if (event > ARRAY_SIZE (sony_laptop_input_keycode_map)) {
+               if (event >= ARRAY_SIZE(sony_laptop_input_index)) {
                        dprintk("sony_laptop_report_input_event, event not known: %d\n", event);
                        break;
                }