Skip to content

Commit

Permalink
USB: whiteheat: fix broken port configuration
Browse files Browse the repository at this point in the history
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 <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Jun 6, 2013
1 parent f448803 commit 9eecf22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/serial/whiteheat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9eecf22

Please sign in to comment.