From: Milosz Tanski <milosz@comcast.net>
To: linux-kernel@vger.kernel.org
Subject: Fix: DEVFS compile failuer [2.5.30]
Date: Sat, 03 Aug 2002 01:15:15 -0400 [thread overview]
Message-ID: <1028351716.6004.4.camel@milosz.home.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 383 bytes --]
There is a compile time error in Linux 2.5.30 in fs/partitions/check.c,
in function devfs_register_partitions. The line 470 contains an error,
dev->part[p].de = NULL; p is a pointer to a structure (hd_stuct). I
searched around 2.4.18, and it is dev->part[part + minor].de = NULL; I
tried changing that line, and I investigated, now it compiles and works.
A patch is attached, thx.
[-- Attachment #2: devfs-array.patch --]
[-- Type: text/plain, Size: 407 bytes --]
--- fs/partitions/check.c.orig 2002-08-01 17:16:19.000000000 -0400
+++ fs/partitions/check.c 2002-08-03 00:51:49.000000000 -0400
@@ -467,7 +467,7 @@
for (part = 1; part < max_p; part++) {
if ( unregister || (p[part].nr_sects < 1) ) {
devfs_unregister(p[part].de);
- dev->part[p].de = NULL;
+ dev->part[part + minor].de = NULL;
continue;
}
devfs_register_partition (dev, minor, part);
reply other threads:[~2002-08-03 5:11 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=1028351716.6004.4.camel@milosz.home.com \
--to=milosz@comcast.net \
--cc=linux-kernel@vger.kernel.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®