]> err.no Git - linux-2.6/commit
[PATCH] USB: pl2303_update_line_status data length fix
authorHorst Schirmeier <horst@schirmeier.com>
Thu, 28 Jul 2005 13:32:20 +0000 (15:32 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 4 Jan 2006 21:51:41 +0000 (13:51 -0800)
commit95f209f93663103db2a8fb989e226ac68a98b036
tree459d85d3012707d2d7d588cfff88a67c3485db48
parent17fa6e552f2fc6bb06af767b0abf9cb642e13404
[PATCH] USB: pl2303_update_line_status data length fix

Minimum data length must be UART_STATE + 1, as data[UART_STATE] is being
accessed for the new line_state. Although PL-2303 hardware is not
expected to send data with exactly UART_STATE length, this keeps it on
the safe side.

Signed-off-by: Horst Schirmeier <horst@schirmeier.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/pl2303.c