]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Char: mxser_new, alter locking in isr
authorJiri Slaby <jirislaby@gmail.com>
Sat, 10 Feb 2007 09:45:18 +0000 (01:45 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:29 +0000 (10:51 -0800)
commitfa3092052d528f4bfe16bcb1d2eef3ce1a679ac1
treef905e9170338a295e897013c9ab01ca189f08dbe
parentfb7a47b235463a683f53402d6b2941719e76b0f0
[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