From: Nikolai Kondrashov Date: Mon, 11 Aug 2014 17:45:32 +0000 (+0300) Subject: HID: huion: Use allocated buffer for DMA X-Git-Tag: omap-for-v3.17/fixes-against-rc2~28^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6498d02306b337393b0bc92164857f3e6949c4e8;p=pandora-kernel.git 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 Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed