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:26:28 +0000 (08:26 -0700)
commitd36f8a9594acdd87233b2a7e91328b7d56fa3828
treec9f7e04697b67d14419f37585897553818642952
parent40d0288f1975286f4a249b76f3b489bde5bc0be5
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