Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9eecf22d authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

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: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f4488035
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {