OSDN Git Service

HID: wacom: Skip processing of touches with negative slot values
authorJason Gerecke <killertofu@gmail.com>
Mon, 19 Jul 2021 20:55:31 +0000 (13:55 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 28 Jul 2021 09:43:48 +0000 (11:43 +0200)
commit7cc8524f65ce1a350042836c7cf837046aaa6e21
treea5615e50436e5701a0c325afdecb301e7a698671
parent6ca2350e11f09d5d3e53777d1eff8ff6d300ed93
HID: wacom: Skip processing of touches with negative slot values

The `input_mt_get_slot_by_key` function may return a negative value
if an error occurs (e.g. running out of slots). If this occurs we
should really avoid reporting any data for the slot.

Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c