mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: tachino Nobuhiro <tachino@open.nm.fujitsu.co.jp>
To: rml@ufl.edu
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.2ac8 lost char devices
Date: Fri, 02 Mar 2001 15:05:32 +0900	[thread overview]
Message-ID: <snkwhfir.wl@frostrubin.open.nm.fujitsu.co.jp> (raw)
In-Reply-To: <983511748.3a9f32c4e5ca2@webmail.ufl.edu>
In-Reply-To: <983511748.3a9f32c4e5ca2@webmail.ufl.edu>


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.


 int misc_register(struct miscdevice * misc)
 {      
        static devfs_handle_t devfs_handle;
-               
+       struct miscdevice *c;
+               
        if (misc->next || misc->prev)
                return -EBUSY;
        down(&misc_sem);
+       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)

+               up(&misc_sem);
+               return -EBUSY;
+       }


---
Nobuhiro Tachino
Development Department
Linux Division
Software Group
FUJITSU LIMITED
TEL: +81 559 24 7273
FAX: +81 559 24 6196
E-Mail: tachino@open.nm.fujitsu.co.jp

  reply	other threads:[~2001-03-02  6:06 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 [this message]
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   ` 2.4.2ac8 lost char devices Philipp Rumpf
  -- strict thread matches above, loose matches on Subject: below --
2001-03-02  6:14 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=snkwhfir.wl@frostrubin.open.nm.fujitsu.co.jp \
    --to=tachino@open.nm.fujitsu.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rml@ufl.edu \
    /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®