From: Johan Hovold Date: Thu, 6 Jun 2013 11:32:47 +0000 (+0200) Subject: USB: whiteheat: fix broken port configuration X-Git-Tag: v3.10-rc5~20^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9eecf22d2b375b9064a20421c6c307b760b03d46;p=platform%2Fkernel%2Flinux-stable.git USB: whiteheat: fix broken port configuration When configuring the port (e.g. set_termios) the port minor number rather than the port number was used in the request (and they only coincide for minor number 0). Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index b9fca35..347caad 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c @@ -649,7 +649,7 @@ static void firm_setup_port(struct tty_struct *tty) struct whiteheat_port_settings port_settings; unsigned int cflag = tty->termios.c_cflag; - port_settings.port = port->number + 1; + port_settings.port = port->number - port->serial->minor + 1; /* get the byte size */ switch (cflag & CSIZE) {