Commit 55b2afbb authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: cp210x: call generic open last in open



Make sure port is fully initialised before calling generic open.

Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 791b7d7c
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -410,13 +410,10 @@ static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *port)
		return result;
	}

	result = usb_serial_generic_open(tty, port);
	if (result)
		return result;

	/* Configure the termios structure */
	cp210x_get_termios(tty, port);
	return 0;

	return usb_serial_generic_open(tty, port);
}

static void cp210x_close(struct usb_serial_port *port)