USB: gadget: Hangup tty on g_serial disconnect
commit4208978ec4f0d6001facf95be9defccf1a0bf313
authorSavin Zlobec <savin@epiko.si>
Fri, 15 Feb 2008 12:42:01 +0000 (15 13:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:35 +0000 (24 21:16 -0700)
tree0ba2aa83a81e365500954708f7f07c459d861dbd
parentc765d4cad977f7e454a53d5bca5a942156b2d94c
USB: gadget: Hangup tty on g_serial disconnect

On USB cable disconnect g_serial doesn't hangup the port tty,
which results in an endless read on the tty device. With the
following patch the read and select behave correctly when
the cable is unplugged.

Tested on at91rm9200

Signed-off-by: Savin Zlobec <savin@epiko.si>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/serial.c