]> git.baikalelectronics.ru Git - kernel.git/commit
tty: tty_port: Move the IO_ERROR clear
authorAlan Cox <alan@linux.intel.com>
Mon, 30 Nov 2009 13:16:57 +0000 (13:16 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:06 +0000 (15:18 -0800)
commit15430f1334887a7bc034a5fd8349189e19028f72
tree91b83c156abea75c5384556b8b7bc24edb1bc169
parenta07ec0fbd69722c48598365f67b239e5dae649fa
tty: tty_port: Move the IO_ERROR clear

Some devices want to set IO_ERROR in their activate methods so that you can
be handed a 'dead' port for operations like setserial. Thus we need to
clear the flag before activate so that activate can choose to set the flag
and still return 0.

This is fine as the file handle/tty are not accessible to the user yet.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_port.c