From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:38766 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753725AbcHCFYA (ORCPT ); Wed, 3 Aug 2016 01:24:00 -0400 Subject: Patch "Input: wacom_w8001 - ignore invalid pen data packets" has been added to the 3.14-stable tree To: pinglinux@gmail.com, christopherarges@gmail.com, dmitry.torokhov@gmail.com, gregkh@linuxfoundation.org, peter.hutterer@who-t.net, pingc@wacom.com Cc: , From: Date: Wed, 03 Aug 2016 07:23:56 +0200 Message-ID: <147020183621233@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled Input: wacom_w8001 - ignore invalid pen data packets to the 3.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: input-wacom_w8001-ignore-invalid-pen-data-packets.patch and it can be found in the queue-3.14 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 9e72ac7492149a229ce9039c680849cb682d7092 Mon Sep 17 00:00:00 2001 From: Ping Cheng Date: Thu, 23 Jun 2016 10:55:11 -0700 Subject: Input: wacom_w8001 - ignore invalid pen data packets From: Ping Cheng commit 9e72ac7492149a229ce9039c680849cb682d7092 upstream. ThinkPad X60 Tablet PC (pen only device) sometime posts packets that are larger than W8001_PKTLEN_TPCPEN. Reported-by: Chris J Arges Tested-by: Chris J Arges Signed-off-by: Ping Cheng Reviewed-by: Peter Hutterer Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers/input/touchscreen/wacom_w8001.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/drivers/input/touchscreen/wacom_w8001.c +++ b/drivers/input/touchscreen/wacom_w8001.c @@ -342,6 +342,15 @@ static irqreturn_t w8001_interrupt(struc w8001->idx = 0; parse_multi_touch(w8001); break; + + default: + /* + * ThinkPad X60 Tablet PC (pen only device) sometimes + * sends invalid data packets that are larger than + * W8001_PKTLEN_TPCPEN. Let's start over again. + */ + if (!w8001->touch_dev && w8001->idx > W8001_PKTLEN_TPCPEN - 1) + w8001->idx = 0; } return IRQ_HANDLED; Patches currently in stable-queue which might be from pinglinux@gmail.com are queue-3.14/input-wacom_w8001-w8001_max_length-should-be-13.patch queue-3.14/input-wacom_w8001-ignore-invalid-pen-data-packets.patch