summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-ids.h
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2008-09-17 19:41:58 +0200
committerJiri Kosina <jkosina@suse.cz>2008-10-14 23:51:00 +0200
commit2b107d629dc0c35de606bb7b010b829cd247a93a (patch)
treec287d509c0a16a2c7d30b00d413a8a3b81e5188a /drivers/hid/hid-ids.h
parentd92870ddd248e8c2562a8c4047885d3ad221ece7 (diff)
downloadlwn-2b107d629dc0c35de606bb7b010b829cd247a93a.tar.gz
lwn-2b107d629dc0c35de606bb7b010b829cd247a93a.zip
HID: fix incorrent length condition in hidraw_write()
The bound check on the buffer length if (count > HID_MIN_BUFFER_SIZE) is of course incorrent, the proper check is if (count > HID_MAX_BUFFER_SIZE) Fix it. Reported-by: Jerry Ryle <jerry@mindtribe.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-ids.h')
0 files changed, 0 insertions, 0 deletions