nozomi: quick fix for the close/close bug
authorAlan Cox <alan@linux.intel.com>
Mon, 4 Jan 2010 16:26:50 +0000 (16:26 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Jan 2010 23:03:27 +0000 (15:03 -0800)
commiteeec32a731631a9bad9abb21c626b9f2840bee0d
treed78bedd82f6bf135d02c3459c443e1f4db9bb2b4
parent3f00171125384b46e5088b7d7a5d0b3e6972f1ee
nozomi: quick fix for the close/close bug

Nozomi goes wrong if you get the sequence

open
open
close

[stuff]
close

which turns out to occur on some ppp type setups.

This is a quick patch up for the problem. It's not really fixing Nozomi
which completely fails to implement tty open/close semantics and all the
other needed stuff. Doing it right is a rather more invasive patch set and
not one that will backport.

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