mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philipp Rumpf <prumpf@mandrakesoft.com>
To: tachino Nobuhiro <tachino@open.nm.fujitsu.co.jp>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: rml@ufl.edu, linux-kernel@vger.kernel.org
Subject: Re: 2.4.2ac8 lost char devices
Date: Fri, 2 Mar 2001 04:53:03 -0600	[thread overview]
Message-ID: <20010302045303.A32397@mandrakesoft.mandrakesoft.com> (raw)
In-Reply-To: <983511748.3a9f32c4e5ca2@webmail.ufl.edu> <snkwhfir.wl@frostrubin.open.nm.fujitsu.co.jp>
In-Reply-To: <snkwhfir.wl@frostrubin.open.nm.fujitsu.co.jp>; from tachino Nobuhiro on Fri, Mar 02, 2001 at 03:05:32PM +0900

On Fri, Mar 02, 2001 at 03:05:32PM +0900, tachino Nobuhiro wrote:
> 
> Hello, 
> 
> At Fri, 02 Mar 2001 00:42:28 -0500,
> <rml@ufl.edu> wrote:
> > 
> > actually, its not just ps/2 mice -- it seems to be something generic to char
> > devices. agpgartis failing to register itself, too.
> > 
> > what changed with char device handling from ac7 to ac8?
> > 
> > robert love
> > rml@ufl.edu
> > -
> 
>   misc_register() in drivers/char/misc.c seems to have a problem.

I guess it's too late now to pretend it's not my fault.  I foolishly assumed
if it would boot for me I couldn't have broken it too badly.

> +       c = misc_list.next;
> +               
> +       while ((c != &misc_list) && (c->minor != misc->minor))
> +               c = c->next;
> +       if (c == &misc_list) {
> 
>   This should be  (c != &misc_list)

Correct.  Alan,


diff -ur linux/drivers/char/misc.c linux-prumpf/drivers/char/misc.c
--- linux/drivers/char/misc.c	Fri Mar  2 02:48:04 2001
+++ linux-prumpf/drivers/char/misc.c	Fri Mar  2 02:49:43 2001
@@ -180,7 +180,7 @@
 
 	while ((c != &misc_list) && (c->minor != misc->minor))
 		c = c->next;
-	if (c == &misc_list) {
+	if (c != &misc_list) {
 		up(&misc_sem);
 		return -EBUSY;
 	}

  parent reply	other threads:[~2001-03-02 10:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-02  5:42 rml
2001-03-02  6:05 ` tachino Nobuhiro
2001-03-02 10:52   ` [patch] ps2fix-2.4.2-A0 Ingo Molnar
2001-03-02 10:57     ` Tigran Aivazian
2001-03-02 10:53   ` Philipp Rumpf [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-03-02  6:14 2.4.2ac8 lost char devices Ashwin D
     [not found] <20010302031630.A2762@werewolf.able.es>
     [not found] ` <Pine.LNX.4.10.10103012118150.4044-100000@coffee.psychology.mcmaster.ca>
2001-03-02  2:24   ` J . A . Magallon
2001-03-02  2:27     ` Mark Hahn
2001-03-02  4:20       ` J Sloan
2001-03-02 10:14       ` Tigran Aivazian
2001-03-02  2:09 J . A . Magallon
2001-03-02 14:08 ` Alan Cox

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=20010302045303.A32397@mandrakesoft.mandrakesoft.com \
    --to=prumpf@mandrakesoft.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rml@ufl.edu \
    --cc=tachino@open.nm.fujitsu.co.jp \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®