summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-sensor-hub.c
diff options
context:
space:
mode:
authorFrank Praznik <frank.praznik@oh.rr.com>2014-02-20 20:36:02 +0400
committerJiri Kosina <jkosina@suse.cz>2014-02-24 20:38:46 +0400
commitac3c9a94094b515ab135886eb4547bb889d5b31a (patch)
tree359fe7bb4da2918428b687ce89311f201c560962 /drivers/hid/hid-sensor-hub.c
parentc8de9dbb35d3e4efce2bce513192f34ca962d8c0 (diff)
downloadlinux-ac3c9a94094b515ab135886eb4547bb889d5b31a.tar.xz
HID: sony: Perform a boundry check on the sixaxis battery level index.
Make sure that an out-of-bounds read doesn't occur in the Sixaxis battery level lookup table in the event that the controller sends an invalid battery status value in the report. Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-sensor-hub.c')
0 files changed, 0 insertions, 0 deletions