From: <gregkh@linuxfoundation.org>
To: pinglinux@gmail.com, christopherarges@gmail.com,
dmitry.torokhov@gmail.com, gregkh@linuxfoundation.org,
peter.hutterer@who-t.net, pingc@wacom.com
Cc: <stable@vger.kernel.org>, <stable-commits@vger.kernel.org>
Subject: Patch "Input: wacom_w8001 - ignore invalid pen data packets" has been added to the 3.14-stable tree
Date: Wed, 03 Aug 2016 07:23:56 +0200 [thread overview]
Message-ID: <147020183621233@kroah.com> (raw)
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 <stable@vger.kernel.org> know about it.
>From 9e72ac7492149a229ce9039c680849cb682d7092 Mon Sep 17 00:00:00 2001
From: Ping Cheng <pinglinux@gmail.com>
Date: Thu, 23 Jun 2016 10:55:11 -0700
Subject: Input: wacom_w8001 - ignore invalid pen data packets
From: Ping Cheng <pinglinux@gmail.com>
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 <christopherarges@gmail.com>
Tested-by: Chris J Arges <christopherarges@gmail.com>
Signed-off-by: Ping Cheng <pingc@wacom.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
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
reply other threads:[~2016-08-03 5:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=147020183621233@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=christopherarges@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=peter.hutterer@who-t.net \
--cc=pingc@wacom.com \
--cc=pinglinux@gmail.com \
--cc=stable-commits@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox