]> www.infradead.org Git - users/jedix/linux-maple.git/commit
USB: opticon: fix DMA from stack
authorJohan Hovold <jhovold@gmail.com>
Thu, 25 Oct 2012 08:29:11 +0000 (10:29 +0200)
committerGuangyu Sun <guangyu.sun@oracle.com>
Tue, 6 Nov 2012 00:33:23 +0000 (16:33 -0800)
commitb15c032f5707dcb16525b1ce8f1e99a1528bde7f
treed656b06eed0682d0c7c98f59592627a65b305c7b
parent7036b3b35d74b01145f82dc54a52d97f29bf09e8
USB: opticon: fix DMA from stack

commit ea0dbebffe118724cd4df7d9b071ea8ee48d48f0 upstream.

Make sure to allocate the control-message buffer dynamically as some
platforms cannot do DMA from stack.

Note that only the first byte of the old buffer was used.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
drivers/usb/serial/opticon.c