USB: mos7720: fix broken control requests
authorJohan Hovold <jhovold@gmail.com>
Tue, 13 Aug 2013 11:27:34 +0000 (13:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2013 15:21:01 +0000 (08:21 -0700)
commitd808cb7d6aacff9e39d6d1a4e4ad54ad0a47e901
tree1de8dc0735a74d9d5d055ae694a3a7e6cbb3a010
parentfc1cabf00e9fd2fbfaf4d4df246f53138ccf3a0d
USB: mos7720: fix broken control requests

commit ef6c8c1d733e244f0499035be0dabe1f4ed98c6f upstream.

The parallel-port code of the drivers used a stack allocated
control-request buffer for asynchronous (and possibly deferred) control
requests. This not only violates the no-DMA-from-stack requirement but
could also lead to corrupt control requests being submitted.

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