USB: ftdi_sio: fix DMA buffers on stack
commit66e47e6006a558b33c6f15bd2e072d52c40e0159
authorJohan Hovold <jhovold@gmail.com>
Thu, 24 Dec 2009 11:42:09 +0000 (24 12:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:53:37 +0000 (2 14:53 -0800)
tree200815045a299c9d85c5fbdc3b74554bc99ccdce
parent54f328d0c7221675e3c1647e1918172fec1b92c9
USB: ftdi_sio: fix DMA buffers on stack

Also remove unnecessary buffer allocations for zero-length transfers.

Reported-by: Matti Aarnio <matti.aarnio@zmailer.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ftdi_sio.c