HID: check for NULL field when setting values
authorKees Cook <keescook@chromium.org>
Wed, 28 Aug 2013 20:32:01 +0000 (22:32 +0200)
committerBadhri Jagan Sridharan <Badhri@google.com>
Fri, 11 Jul 2014 21:30:38 +0000 (14:30 -0700)
commit58c62d4474fbeda42851553a546e5cb860a036ea
tree1a547db996ee029ea5aa147db5a7ecae9bb92860
parent5e1624f591cc2acbc02d88ab6f1008a57cfb129f
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