From: Andi Kleen <ak@suse.de>
To: torvalds@osdl.org
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] Fix a 64bit bug in kobject module request
Date: Thu, 11 Mar 2004 05:09:43 +0100 [thread overview]
Message-ID: <20040311040943.GB8581@wotan.suse.de> (raw)
>From Takashi Iwai
kobj_lookup had a 64bit bug, which caused the request of a unknown
character device to burn CPU instead of failing quickly.
diff -burpN -X ../KDIFX linux-vanilla/drivers/base/map.c linux-2.6.4-amd64/drivers/base/map.c
--- linux-vanilla/drivers/base/map.c 2003-09-23 08:03:40.000000000 +0200
+++ linux-2.6.4-amd64/drivers/base/map.c 2004-03-08 15:23:45.000000000 +0100
@@ -96,7 +96,7 @@ struct kobject *kobj_lookup(struct kobj_
{
struct kobject *kobj;
struct probe *p;
- unsigned best = ~0U;
+ unsigned long best = ~0UL;
retry:
down_read(domain->sem);
next reply other threads:[~2004-03-11 4:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-11 4:09 Andi Kleen [this message]
2004-03-14 12:11 Mikael Pettersson
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=20040311040943.GB8581@wotan.suse.de \
--to=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/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®