USB: opticon: fix DMA from stack
authorJohan Hovold <jhovold@gmail.com>
Thu, 25 Oct 2012 08:29:11 +0000 (10:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Oct 2012 16:36:59 +0000 (09:36 -0700)
commitea0dbebffe118724cd4df7d9b071ea8ee48d48f0
treed2006bfb341caf15c5716fb740c993a530f4947e
parent2f0295adf6438188c4cd0868f2b1976a2b034e1d
USB: opticon: fix DMA from stack

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.

Cc: <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/opticon.c