aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/spcp8x5.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2010-05-07 13:46:56 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-20 16:21:43 -0400
commit70ced221cc9f041481f129e63cc5b1dedb0ff959 (patch)
tree646401a37dbc21cb3a8549feb867e60d491a9bfd /drivers/usb/serial/spcp8x5.c
parent1ab83238740ff1e1773d5c13ecac43c60cf4aec4 (diff)
USB: tty: fix incorrect use of tty_insert_flip_string_fixed_flag
Fix regression introduced by commit a108bfcb372d8c4452701039308fb95747911c59 (USB: tty: Prune uses of tty_request_room in the USB layer) which broke three drivers (cypress_m8, digi_acceleport and spcp8x5) through incorrect use of tty_insert_flip_string_fixed_flag. Signed-off-by: Johan Hovold <jhovold@gmail.com> Cc: stable <stable@kernel.org> [.34] Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/spcp8x5.c')
-rw-r--r--drivers/usb/serial/spcp8x5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c
index 5d39191e7244..2ea32c561d02 100644
--- a/drivers/usb/serial/spcp8x5.c
+++ b/drivers/usb/serial/spcp8x5.c
@@ -726,8 +726,8 @@ static void spcp8x5_read_bulk_callback(struct urb *urb)
726 /* overrun is special, not associated with a char */ 726 /* overrun is special, not associated with a char */
727 if (status & UART_OVERRUN_ERROR) 727 if (status & UART_OVERRUN_ERROR)
728 tty_insert_flip_char(tty, 0, TTY_OVERRUN); 728 tty_insert_flip_char(tty, 0, TTY_OVERRUN);
729 tty_insert_flip_string_fixed_flag(tty, data, 729 tty_insert_flip_string_fixed_flag(tty, data, tty_flag,
730 urb->actual_length, tty_flag); 730 urb->actual_length);
731 tty_flip_buffer_push(tty); 731 tty_flip_buffer_push(tty);
732 } 732 }
733 tty_kref_put(tty); 733 tty_kref_put(tty);