HID: fix buffer allocations
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Sun, 2 Feb 2014 04:23:10 +0000 (23:23 -0500)
committerJiri Kosina <jkosina@suse.cz>
Mon, 3 Feb 2014 10:02:01 +0000 (11:02 +0100)
commit9d27f43274e4889249dc42ca1a3989dd75c5edaf
tree0b99ca52dc1667f999f5c7288bccb1eff6bfb6c2
parent3db187e7bf76ace626664ef80afbc2e1501172c6
HID: fix buffer allocations

When using hid_output_report(), the buffer should be allocated by hid_alloc_report_buf(),
not a custom malloc.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c
drivers/hid/i2c-hid/i2c-hid.c