--- /home/csoelle/tmp/hsflinmodem-5.03.27lnxtbeta03042700/modules/serial_core.c2003-04-07 09:54:55.000000000 +1200 +++ /usr/lib/hsf/modules/serial_core.c 2003-05-29 15:04:33.000000000 +1200 @@ -1070,7 +1070,7 @@ down(&state->count_sem); spin_lock_irqsave(&info->lock, flags); - if ((tty->count == 1) && (state->count != 1)) { + if ((atomic_read(&tty->count) == 1) && (state->count != 1)) { /* * Uh, oh. tty->count is 1, which means that the tty * structure will be freed. state->count should always