HID: sony: Use kernel allocated buffers for HID reports
authorFrank Praznik <frank.praznik@oh.rr.com>
Wed, 12 Nov 2014 19:10:09 +0000 (14:10 -0500)
committerJiri Kosina <jkosina@suse.cz>
Wed, 19 Nov 2014 09:23:54 +0000 (10:23 +0100)
commit9b2b5c9a790743ccb2516f1a86671d5df9c6c5cd
tree3401b3ff86f562eb38989039fa0c9dd6a2e57d8c
parent6b07974af9698225766d42175470b1a5d7bf9f48
HID: sony: Use kernel allocated buffers for HID reports

Replace stack buffers with kernel allocated buffers for sending
and receiving HID reports to prevent issues with DMA transfers
on certain hardware.

Output report buffers are allocated at initialization time to avoid
excessive calls to kmalloc and kfree.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=87991
Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c