https://github.com/torvalds/linux
Revision e2c7d8877e5caa2356b5bc8207535e83b126f653 authored by Benjamin Tissoires on 05 March 2015, 22:36:35 UTC, committed by Jiri Kosina on 17 March 2015, 19:59:55 UTC
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 <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 9b02864
History
Tip revision: e2c7d8877e5caa2356b5bc8207535e83b126f653 authored by Benjamin Tissoires on 05 March 2015, 22:36:35 UTC
HID: wacom: check for wacom->shared before following the pointer
Tip revision: e2c7d88
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.0 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 293.5 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top