HID: i2c-hid: fix memory corruption due to missing hid declaration
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>
Wed, 5 Dec 2012 14:02:53 +0000 (15:02 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 6 Dec 2012 09:54:26 +0000 (10:54 +0100)
commit27174cff8fcfcb3a60a3e7225cc627f6a4b7f827
treed4992c47aedd6710f0facb90bc463a5219693c59
parentaddb114dd646f9386f5845cdb059f22a497f9a9d
HID: i2c-hid: fix memory corruption due to missing hid declaration

HID descriptors contains 4 bytes of reserved field.
The previous implementation was overriding the next fields in struct i2c_hid.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid.c