]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/hid/wacom_wac.c
HID: wacom: generic: Send data only when the interface is defined
authorPing Cheng <pinglinux@gmail.com>
Fri, 9 Dec 2016 06:04:52 +0000 (22:04 -0800)
committerJiri Kosina <jkosina@suse.cz>
Fri, 9 Dec 2016 12:26:24 +0000 (13:26 +0100)
commit6f46cf9b40df7d181f11989bab6f4cc08787cdfe
tree0ea166bcc25918006a1fd5a8232e2aae1707032b
parent354a32985a863c9eecd381a5f9eea480d5abc6dc
HID: wacom: generic: Send data only when the interface is defined

Sometime valid events may not be supported by the driver yet. Make
sure we don't process them when the code is not ready.

This fix prevents a kernel panic due to unsupported HID events.

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