HID: bump maximum global item tag report size to 96 bytes
authorChase Douglas <chase.douglas@canonical.com>
Mon, 7 Nov 2011 19:08:05 +0000 (11:08 -0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 16 Nov 2011 13:52:10 +0000 (14:52 +0100)
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 <chase.douglas@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c

index 848a56c0279c8ac61687340c732521094428e541..6113996d5f7021cebaa502c727e18d5efcd7689b 100644 (file)
@@ -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;