[PATCH 00/14] USB: serial: fix DMA buffers on stack and endianess bugs

From: Johan Hovold
Date: Mon Dec 28 2009 - 17:02:29 EST


Hi,

These patches should address all remaining instances of DMA buffers on stack
(being passed to usb_control_msg) for the usb serial drivers. They also fix a
few endianess bugs I found along the way and do some minor clean up.

Note that I have not been able to test them on actual hardware, so please have
a go if you happen to have access to one of these devices.

Also note that these patches do not include the DMA-buffer-on-stack fix for
ftdi_sio i submitted a few days ago.

Cheers,
Johan


Johan Hovold (14):
USB: ch341: replace printk warnings with dev_err
USB: ch341: fix DMA buffer on stack
USB: ch341: use le16_to_cpup to be explicit about endianess
USB: cypress_m8: fix DMA buffer on stack
USB: cypress_m8: fix endianess bug
USB: io_ti: fix DMA buffers on stack
USB: keyspan_pda: fix DMA buffers on stack
USB: kl5kusb105: fix DMA buffers on stack
USB: mct_u232: fix DMA buffers on stack
USB: mos7720: fix DMA buffers on stack and clean up send_mos_cmd
USB: mos7840: fix DMA buffers on stack and endianess bugs
USB: oti6858: fix DMA buffer on stack
USB: visor: fix DMA buffers on stack
USB: kobil_sct: clean up kobil_set_termios

drivers/usb/serial/ch341.c | 24 +++++++++----
drivers/usb/serial/cypress_m8.c | 35 +++++++++++---------
drivers/usb/serial/io_ti.c | 66 +++++++++++++++++++++++++++----------
drivers/usb/serial/keyspan_pda.c | 45 ++++++++++++++++++-------
drivers/usb/serial/kl5kusb105.c | 63 +++++++++++++++++++++++++----------
drivers/usb/serial/kobil_sct.c | 22 ++----------
drivers/usb/serial/mct_u232.c | 67 ++++++++++++++++++++++++++++++-------
drivers/usb/serial/mos7720.c | 34 +++++++++---------
drivers/usb/serial/mos7840.c | 22 ++++++++++--
drivers/usb/serial/oti6858.c | 13 ++++++--
drivers/usb/serial/visor.c | 26 ++++++++++----
11 files changed, 282 insertions(+), 135 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/