]> git.baikalelectronics.ru Git - kernel.git/commit
tty_port: add "tty_port_open" helper
authorAlan Cox <alan@linux.intel.com>
Tue, 6 Oct 2009 15:06:11 +0000 (16:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:04 +0000 (15:18 -0800)
commit9fad937d878b8f555f1af808f49a5c34079d6056
treedc96d1737d3d70bbdebaea7e0f0aedd1377e1000
parent7dd8e3a04ffbaf790fbd5dd04227546d67199bbc
tty_port: add "tty_port_open" helper

For the moment this just moves the USB logic over and fixes the 'what if
we open and hangup at the same time' race noticed by Oliver Neukum.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_port.c
drivers/usb/serial/usb-serial.c
include/linux/tty.h