mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
USB: serial: omninet: fix reference leaks at open
am: 54f11a9662
Change-Id: If2605f1daf506ae915776138b6268d0769a39487
This commit is contained in:
@@ -142,12 +142,6 @@ static int omninet_port_remove(struct usb_serial_port *port)
|
||||
|
||||
static int omninet_open(struct tty_struct *tty, struct usb_serial_port *port)
|
||||
{
|
||||
struct usb_serial *serial = port->serial;
|
||||
struct usb_serial_port *wport;
|
||||
|
||||
wport = serial->port[1];
|
||||
tty_port_tty_set(&wport->port, tty);
|
||||
|
||||
return usb_serial_generic_open(tty, port);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user