]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: check for wacom->shared before following the pointer
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 5 Mar 2015 22:36:35 +0000 (17:36 -0500)
committerJiri Kosina <jkosina@suse.cz>
Tue, 17 Mar 2015 19:59:55 +0000 (20:59 +0100)
commita1ebaf296d26ec76b6e91fba4a3419e903be6e28
tree09de6c100ca6990b8fafbf0fe21ad1fa602a15b8
parentb2c3262504abe4b9b21e3ac0b431aba8ed3ff935
HID: wacom: check for wacom->shared before following the pointer

d0694a6 (HID: wacom: do not send pen events before touch is up/forced out)
introduces a kernel oops when plugging a tablet without touch.

wacom->shared is null for these devices so this leads to a null pointer
exception.

Change the condition to make it clear that what we need is wacom->shared
not NULL.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c