--- ./drivers/char/rocket.c.orig 2003-10-13 12:58:33.000000000 +0300 +++ ./drivers/char/rocket.c 2003-10-13 20:10:05.000000000 +0300 @@ -1052,7 +1052,7 @@ restore_flags(flags); return; } - if ((tty->count == 1) && (info->count != 1)) { + if ((atomic_read(&tty->count) == 1) && (info->count != 1)) { /* * Uh, oh. tty->count is 1, which means that the tty * structure will be freed. Info->count should always