Browse Source

USB: ftdi_sio.c: Fill the RX field of the ftdi async_icount structure

Signed-off-by: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Uwe Bonnes 13 years ago
parent
commit
c9222ec92e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/usb/serial/ftdi_sio.c

+ 1 - 0
drivers/usb/serial/ftdi_sio.c

@@ -1984,6 +1984,7 @@ static int ftdi_process_packet(struct tty_struct *tty,
 	len -= 2;
 	if (!len)
 		return 0;	/* status only */
+	priv->icount.rx += len;
 	ch = packet + 2;
 
 	if (port->port.console && port->sysrq) {