]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 23:52:48 +0000 (16:52 -0700)
commitfc4a8fd8746dcd6ff011bc61c06fe9cf5ed2015a
tree943afdd6b0a5baf01c201463af559f99619d1f45
parent0d564bb5984ae5b94233bc0bdb0e38073fc1b038
HID: check for NULL field when setting values

commit be67b68d52fa28b9b721c47bb42068f0c1214855 upstream.

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

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-core.c