On Do, 2018-06-21 at 17:45 +0900, Jaejoong Kim wrote: > The cdc-acm driver does not have a refcount of itself, but uses a > tty_port's refcount. That is, if the refcount of tty_port is '0', we > can clean up the cdc-acm driver by calling the .destruct() > callback function of struct tty_port_operations. > > The problem is the destruct() callback function is not called if > the probe() fails, because tty_port's refcount is not zero. So, > add tty_port_put() when probe() fails. > > Signed-off-by: Jaejoong Kim <climbbb....@gmail.com>
Acked-by: Oliver Neukum <oneu...@suse.com> -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html