aboutsummaryrefslogtreecommitdiff
path: root/drivers/hid/hid-lgff.c
diff options
context:
space:
mode:
authorJosh Boyer2016-03-28 09:22:14 -0400
committerJiri Kosina2016-03-29 15:39:36 +0200
commitea36ae09105b7688225c02d33f1f3213299360f6 (patch)
tree0f26b91db057dc2fcc58acbeb327398d7ed250c6 /drivers/hid/hid-lgff.c
parent972e6a993f278b416a8ee3ec65475724fc36feb2 (diff)
HID: lenovo: Don't use stack variables for DMA buffers
The lenovo_send_cmd_cptkbd function uses a stack variable to submit commands via hid_hw_raw_request. Eventually this gets to the usb_hcd_map_urb_for_dma function, which causes a warning to be thrown if the CONFIG_DMA_API_DEBUG option is enabled. Fix this by allocating a temporary buffer instead. [jkosina@suse.cz: no need to NULL-initialize buf, spotted by Benjamin] Reported-by: lejeczek <peljasz@yahoo.co.uk> Signed-off-by: Josh Boyer <jwboyer@fedoraproject.org> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lgff.c')
0 files changed, 0 insertions, 0 deletions