]> git.karo-electronics.de Git - karo-tx-linux.git/commit
HID: check for NULL field when setting values
authorKees Cook <keescook@chromium.org>
Wed, 28 Aug 2013 20:32:01 +0000 (22:32 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 4 Sep 2013 10:05:31 +0000 (12:05 +0200)
commitbe67b68d52fa28b9b721c47bb42068f0c1214855
tree8be7d0b0194e6c7c138c55dccdefaf406dd6e46c
parent1e87a2456b0227ca4ab881e19a11bb99d164e792
HID: check for NULL field when setting values

Defensively check that the field to be worked on is not NULL.

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: stable@kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c