From: Benjamin Tissoires Date: Thu, 5 Mar 2015 22:36:35 +0000 (-0500) Subject: HID: wacom: check for wacom->shared before following the pointer X-Git-Tag: omap-for-v4.1/fixes-rc1~310^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2c7d8877e5caa2356b5bc8207535e83b126f653;p=pandora-kernel.git HID: wacom: check for wacom->shared before following the pointer 486b908 (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 Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed