]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit438e11f68f95c6d59bf71a9f3e2624245b6f0874
tree3401b3ff86f562eb38989039fa0c9dd6a2e57d8c
parent2449157e8b13290e490db52fbdcf00f6f293c59e
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