]> git.baikalelectronics.ru Git - kernel.git/commit
Add kref to fake tty used by USB console
authorKevin Hao <kexin.hao@windriver.com>
Mon, 1 Dec 2008 11:36:16 +0000 (11:36 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 1 Dec 2008 16:19:10 +0000 (08:19 -0800)
commit1a7adcd5a1550143587ac7b8d39418b3d208025a
tree1e40e93b332e9e9399ab15345dc0c487d6237649
parentdd08aeff7a179c2089ae4d8dcb7fc12b245d983b
Add kref to fake tty used by USB console

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@windriver.com>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/serial/console.c