HID: ntrig don't dereference unclaimed hidinput
authorRafi Rubin <rafi@seas.upenn.edu>
Tue, 8 Mar 2011 05:24:29 +0000 (00:24 -0500)
committerJiri Kosina <jkosina@suse.cz>
Tue, 8 Mar 2011 13:36:31 +0000 (14:36 +0100)
commitf41a52d3010579949a3b9fd76783120d9643b60b
treeff3644b3a776e9d954d4a4c0c35590f8fd594cf4
parent581548db3b3c0f6e25b500329eb02e3c72e7acbe
HID: ntrig don't dereference unclaimed hidinput

Check before dereferencing field->hidinput to fix a reported invalid
deference bug.

Signed-off-by: Rafi Rubin <rafi@seas.upenn.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ntrig.c