lkml.org 
[lkml]   [2003]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] [2.4] Rocketport driver compile fix
Hello!

Rocketport driver does not compile in latest 2.4 bk, it seems to assume
that tty->count is of atomic type which is no longer true.

Seems that this patch is needed now.


===== drivers/char/rocket.c 1.9 vs edited =====
--- 1.9/drivers/char/rocket.c Wed Aug 13 17:22:04 2003
+++ edited/drivers/char/rocket.c Thu Sep 11 15:22:06 2003
@@ -1052,7 +1052,7 @@
restore_flags(flags);
return;
}
- if ((atomic_read(&tty->count) == 1) && (info->count != 1)) {
+ if ((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
Bye,
Oleg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.026 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site