Skip to contentSkip to conversation

2.4.23-pre7-pac1

DISCUSSION O.Sezer 1 participant 1 message Oct 13, 2003 Char and misc drivers

lore
Share & tools
lore

O.Sezer

author
#0 lore raw

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

Regards;
Özkan Sezer

drivers/char/rocket.c renamed from drivers/char/rocket.c.orig +1 -1
@@ -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