USB: tty: fix incorrect use of tty_insert_flip_string_fixed_flag
[pandora-kernel.git] / drivers / usb / serial / cypress_m8.c
index e23c779..582e832 100644 (file)
@@ -1309,7 +1309,7 @@ static void cypress_read_int_callback(struct urb *urb)
        /* process read if there is data other than line status */
        if (tty && bytes > i) {
                tty_insert_flip_string_fixed_flag(tty, data + i,
-                               bytes - i, tty_flag);
+                               tty_flag, bytes - i);
                tty_flip_buffer_push(tty);
        }