tty: serial - fix various misuses/mishandlings of port->tty
commit192251352f912bccfb942ea35801d2357f11f592
authorAlan Cox <alan@linux.intel.com>
Tue, 1 Jun 2010 20:52:51 +0000 (1 22:52 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 20:47:41 +0000 (10 13:47 -0700)
treebd6215250edc64b9c5844455cdfcd800ea395b16
parenta360fae67bc173942f620d44d1b23cfb5ccaaf96
tty: serial - fix various misuses/mishandlings of port->tty

Make it robust against hang up events. In most cases we can do this simply
by passing the right things in the first place.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/serial_core.c