]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: fix an Oops caused by wacom_wac_finger_count_touches
authorPing Cheng <pinglinux@gmail.com>
Wed, 20 May 2015 00:42:02 +0000 (17:42 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 20 May 2015 10:00:29 +0000 (12:00 +0200)
commit7c78eac9fc1c6901211b36ea6f57089b735fbc67
treefbb6190cbfce6bda0e6e075b7bdb97d6088240fe
parent17d4a9fc1c07fb643731a4ef9a42ed9882e2760d
HID: wacom: fix an Oops caused by wacom_wac_finger_count_touches

We assumed all touch interfaces report touch data. But, Bamboo
and Intuos non-touch devices report express keys on touch
interface. We need to check touch_max before counting touches.

Reported-by: Tasos Sahanidis <tasos@tasossah.com>
Signed-off-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c