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

Commit 5525b6c4 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: serial: console: fix use-after-free after failed setup"

parents 41914a57 f9abab67
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -187,6 +187,7 @@ static int usb_console_setup(struct console *co, char *options)
	tty_kref_put(tty);
 reset_open_count:
	port->port.count = 0;
	info->port = NULL;
	usb_autopm_put_interface(serial->interface);
 error_get_interface:
	usb_serial_put(serial);