[PATCH] Char: mxser_new, alter locking in isr
commitf574874bc861414bbae220b1fe623cbdd098243b
authorJiri Slaby <jirislaby@gmail.com>
Sat, 10 Feb 2007 09:45:18 +0000 (10 01:45 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:29 +0000 (11 10:51 -0800)
treef905e9170338a295e897013c9ab01ca189f08dbe
parent765d94c1b37d08be02eea6abbff70c0fda0ba984
[PATCH] Char: mxser_new, alter locking in isr

Avoid oopsing when stress-testing open/close -- port->tty is NULL sometimes,
but is expected to be non-NULL, since dereferencing.  Receive/transmit chars
iff ASYNC_CLOSING is not set and ASYNC_INITIALIZED is set.  Thanks Sergei for
pointing this out and testing.

Cc: Sergei Organov <osv@javad.com>
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mxser_new.c