Re: 2.4.23-pre7-pac1

From: O.Sezer
Date: Mon Oct 13 2003 - 13:45:02 EST


drivers/char/rocket.c is missing the tty->count -->
atomic_read(&tty->count) change. Patch attached.

Regards;
Özkan Sezer
--- ./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