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: firefly_0821_release~3680^2~3775^2~1^4~18 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e46e927b9b7e8d95526e69322855243882b7e1a3;p=firefly-linux-kernel-4.4.55.git HID: bump maximum global item tag report size to 96 bytes This allows the latest N-Trig devices to function properly. BugLink: https://bugs.launchpad.net/bugs/724831 Cc: stable@vger.kernel.org Signed-off-by: Chase Douglas Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 848a56c0279c..6113996d5f70 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;