summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-roccat-kone.h
diff options
context:
space:
mode:
authorNikolai Kondrashov <spbnick@gmail.com>2014-08-11 17:45:32 (GMT)
committerJiri Kosina <jkosina@suse.cz>2014-08-12 10:44:59 (GMT)
commit6498d02306b337393b0bc92164857f3e6949c4e8 (patch)
tree9e1e243f2584375c902ed64c23f59d03e42cadd3 /drivers/hid/hid-roccat-kone.h
parent657d6dc4197e9bc13522d0ed0e1a4ae7d0d84614 (diff)
downloadlinux-6498d02306b337393b0bc92164857f3e6949c4e8.tar.xz
HID: huion: Use allocated buffer for DMA
Allocate a buffer with kmalloc for receiving the parameters string descriptor with usb_control_msg, instead of using a buffer on the stack, as the latter is unsafe. Use an enum for indices into the buffer to ensure the buffer size if sufficient. This fixes the static checker error "doing dma on the stack (buf)". Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-roccat-kone.h')
0 files changed, 0 insertions, 0 deletions