HID: wacom: Don't add ghost interface as shared data
authorAaron Armstrong Skomra <skomra@gmail.com>
Wed, 29 Mar 2017 17:35:39 +0000 (10:35 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 30 Mar 2017 09:30:45 +0000 (11:30 +0200)
commit8b4073596997f2ccbf68d8e72e07b827388a4536
treec1c306783346d4ee8e3244480a6a82f3620f4cd6
parent9257821c5a1dc57ef3a37f7cbcebaf548395c964
HID: wacom: Don't add ghost interface as shared data

A previous commit (below) adds a check for already probed interfaces to
Wacom's matching heuristic. Unfortunately this causes the Bamboo Pen
(CTL-460) to match itself to its 'ghost' touch interface. After
subsequent changes to the driver this match to the ghost causes the
kernel to crash. This patch avoids calling wacom_add_shared_data()
for the BAMBOO_PEN's ghost touch interface.

Fixes: 41372d5d40e7 ("HID: wacom: Augment 'oVid' and 'oPid' with heuristics for HID_GENERIC")
Cc: stable <stable@vger.kernel.org> # 4.9
Signed-off-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c