All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Drokin <green@linuxhacker.ru>
To: marcelo@conectiva.com.br, linux-kernel@vger.kernel.org
Subject: [PATCH] [2.4] Rocketport driver compile fix
Date: Fri, 12 Sep 2003 00:31:46 +0400	[thread overview]
Message-ID: <20030911203146.GA28291@linuxhacker.ru> (raw)

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

                 reply	other threads:[~2003-09-11 20:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030911203146.GA28291@linuxhacker.ru \
    --to=green@linuxhacker.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.