The patch titled usb serial console setup: initialise tty kref has been added to the -mm tree. Its filename is usb-serial-console-setup-initialise-tty-kref.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: usb serial console setup: initialise tty kref From: Kevin Hao <kexin.hao@xxxxxxxxxxxxx> We alloc a fake tty in usb serial console setup function. we should init the tty's kref otherwise we will face WARN_ON after following invoke of tty_port_tty_set --> tty_kref_get. Signed-off-by: Kevin Hao <kexin.hao@xxxxxxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Cc: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> Cc: <stable@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/usb/serial/console.c | 1 + 1 file changed, 1 insertion(+) diff -puN drivers/usb/serial/console.c~usb-serial-console-setup-initialise-tty-kref drivers/usb/serial/console.c --- a/drivers/usb/serial/console.c~usb-serial-console-setup-initialise-tty-kref +++ a/drivers/usb/serial/console.c @@ -135,6 +135,7 @@ static int usb_console_setup(struct cons err("no more memory"); goto reset_open_count; } + kref_init(&tty->kref); termios = kzalloc(sizeof(*termios), GFP_KERNEL); if (!termios) { retval = -ENOMEM; _ Patches currently in -mm which might be from kexin.hao@xxxxxxxxxxxxx are usb-serial-console-setup-initialise-tty-kref.patch usb-serial-console-add-device-function.patch usb-serial-console-add-device-function-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html