Commit 88897e46 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix bug if open() fails in usb-serial device.

parent 44a36f96
......@@ -489,6 +489,7 @@ static int serial_open (struct tty_struct *tty, struct file * filp)
if (retval) {
port->open_count = 0;
module_put(serial->type->owner);
kobject_put(&serial->kobj);
}
}
bailout:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment