diff options
| -rw-r--r-- | drivers/misc/sony-laptop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c index 899e3f75f288..02ff3d19b1cc 100644 --- a/drivers/misc/sony-laptop.c +++ b/drivers/misc/sony-laptop.c | |||
| @@ -315,7 +315,7 @@ static void sony_laptop_report_input_event(u8 event) | |||
| 315 | break; | 315 | break; |
| 316 | 316 | ||
| 317 | default: | 317 | default: |
| 318 | if (event > ARRAY_SIZE(sony_laptop_input_index)) { | 318 | if (event >= ARRAY_SIZE(sony_laptop_input_index)) { |
| 319 | dprintk("sony_laptop_report_input_event, event not known: %d\n", event); | 319 | dprintk("sony_laptop_report_input_event, event not known: %d\n", event); |
| 320 | break; | 320 | break; |
| 321 | } | 321 | } |
