]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 14 Aug 2013 19:49:27 +0000 (12:49 -0700)
commit1ae80c7debdf6b0439d805b1c3c65709b1f50ea4
tree613007be3fb6a2d3690defa6d6a5730ea562c24a
parentec58e5e5a921beae5fbdea0a2e93e65b08b0bc21
USB: mos7720: fix broken control requests

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.

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/mos7720.c