HID: steelseries: fix out of bound array access
authorJiri Kosina <jkosina@suse.cz>
Thu, 31 Jan 2013 15:51:47 +0000 (16:51 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 31 Jan 2013 15:51:47 +0000 (16:51 +0100)
commit7e41576247b782a21c05f7ea8a78a6db119ba789
treeae913df79a900dc357f6ffe6855d62feabde8bdb
parent090800c2a3f746572ef142e2d5404922a599e841
HID: steelseries: fix out of bound array access

The last field of the driver_data->leds[] array is used to store the
special toggle for setting all leds simultaneously, so we need to allocate
appropriate number of led_classdev pointers.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-steelseries.c