From patchwork Wed Nov 16 18:37:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chase Douglas X-Patchwork-Id: 126012 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 9EE92B71A4 for ; Thu, 17 Nov 2011 05:37:27 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1RQkMA-0007mc-8O; Wed, 16 Nov 2011 18:37:10 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1RQkM7-0007mX-RD for kernel-team@lists.ubuntu.com; Wed, 16 Nov 2011 18:37:07 +0000 Received: from c-24-22-13-22.hsd1.or.comcast.net ([24.22.13.22] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RQkM7-00024V-FV for kernel-team@lists.ubuntu.com; Wed, 16 Nov 2011 18:37:07 +0000 From: Chase Douglas To: kernel-team@lists.ubuntu.com Subject: [Precise][PATCH] (pre-stable) HID: bump maximum global item tag report size to 96 bytes Date: Wed, 16 Nov 2011 10:37:00 -0800 Message-Id: <1321468623-7847-1-git-send-email-chase.douglas@canonical.com> X-Mailer: git-send-email 1.7.5.4 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com 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 --- This has been accepted into Jiri Kosina's git tree for 3.4. It will eventually come down through the stable queue in three or four months, but it should be applied to Precise in the meantime. Note that this won't have any effect until the Ubuntu sauce hid-ntrig patches are reverted. drivers/hid/hid-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 4f81d20..1691c99 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -361,7 +361,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;