USB: mos7720: fix DMA to stack
authorJohan Hovold <jhovold@gmail.com>
Mon, 27 May 2013 12:44:39 +0000 (14:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2013 16:25:06 +0000 (09:25 -0700)
commite9ab9a9031d6224f01577a8fdfe8d380882b8b25
tree5d0ad419bcf0c4e664a5e3d08ed3d9f1951a111f
parent9afcad40de6d98484d3d12305830656b882f76f1
USB: mos7720: fix DMA to stack

commit 72ea18a558ed7a63a50bb121ba60d73b5b38ae30 upstream.

The read_mos_reg function is called with stack-allocated buffers, which
must not be used for control messages.

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