From: Chase Douglas Date: Mon, 7 Nov 2011 19:08:05 +0000 (-0800) Subject: HID: bump maximum global item tag report size to 96 bytes X-Git-Tag: v3.2.2~103 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=44b39e3bed1fe38ccbcc35e71780e3d864f8607c;p=karo-tx-linux.git HID: bump maximum global item tag report size to 96 bytes commit e46e927b9b7e8d95526e69322855243882b7e1a3 upstream. This allows the latest N-Trig devices to function properly. BugLink: https://bugs.launchpad.net/bugs/724831 Signed-off-by: Chase Douglas Signed-off-by: Jiri Kosina Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index af353842f75f..14730678c212 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -362,7 +362,7 @@ static int hid_parser_global(struct hid_parser *parser, struct hid_item *item) case HID_GLOBAL_ITEM_TAG_REPORT_SIZE: parser->global.report_size = item_udata(item); - if (parser->global.report_size > 32) { + if (parser->global.report_size > 96) { dbg_hid("invalid report_size %d\n", parser->global.report_size); return -1;