summaryrefslogtreecommitdiffstats
path: root/drivers/hid/wacom_wac.c
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@fedoraproject.org>2016-03-28 15:22:14 +0200
committerJiri Kosina <jkosina@suse.cz>2016-03-29 15:39:36 +0200
commitea36ae09105b7688225c02d33f1f3213299360f6 (patch)
tree0f26b91db057dc2fcc58acbeb327398d7ed250c6 /drivers/hid/wacom_wac.c
parentHID: usbhid: fix inconsistent reset/resume/reset-resume behavior (diff)
downloadlinux-ea36ae09105b7688225c02d33f1f3213299360f6.tar.xz
linux-ea36ae09105b7688225c02d33f1f3213299360f6.zip
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/wacom_wac.c')
0 files changed, 0 insertions, 0 deletions