]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom - make sure touch_input is valid before using it
authorPing Cheng <pinglinux@gmail.com>
Fri, 7 Nov 2014 01:30:51 +0000 (17:30 -0800)
committerJiri Kosina <jkosina@suse.cz>
Fri, 7 Nov 2014 15:40:47 +0000 (16:40 +0100)
commit5dc6312fd86c85b22eee186218a0bae76c954add
tree66d9f66a99f426672f16431d1846aff4a38eb2cd
parentad618282c840bcddf0fa4733d7d11e59da4b1808
HID: wacom - make sure touch_input is valid before using it

touch_input is stored in wacom_shared for pen data to report touch
switch status. It is possible, although we didn't see it happen on
Linux yet, that pen data is procesed before touch interface is
fully probed.

As a by-product of this patch, it fixes the FreeBSD issue reported
by Denis Akiyakov http://www.spinics.net/lists/linux-input/msg33971.html

Reviewed-by: Hans Petter Selasky <hps@selasky.org>
Tested-by: Denis Akiyakov <d.akiyakov@gmail.com>
Signed-off-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c