From: Andrew Morton <akpm@digeo.com>
To: Alex Riesen <fork0@users.sourceforge.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.70-bk4+: oops by mc -v /proc/bus/pci/00/00.0
Date: Sat, 31 May 2003 19:54:14 -0700 [thread overview]
Message-ID: <20030531195414.10c957b7.akpm@digeo.com> (raw)
In-Reply-To: <20030531165523.GA18067@steel.home>
Alex Riesen <fork0@users.sourceforge.net> wrote:
>
> MC (Midnight Commander 4.6.0 Gentoo) segfaults trying to mmap files
> under /proc/bus/pci.
Thanks. This will fix it up.
It's pretty lame. Really we need a proper vma constructor
somewhere.
diff -puN mm/mmap.c~pci-mmap-fix mm/mmap.c
--- 25/mm/mmap.c~pci-mmap-fix 2003-05-31 19:49:20.000000000 -0700
+++ 25-akpm/mm/mmap.c 2003-05-31 19:49:35.000000000 -0700
@@ -677,6 +677,7 @@ munmap_back:
vma->vm_pgoff = pgoff;
vma->vm_file = NULL;
vma->vm_private_data = NULL;
+ vma->vm_next = NULL;
INIT_LIST_HEAD(&vma->shared);
if (file) {
_
next prev parent reply other threads:[~2003-06-01 2:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-31 16:55 Alex Riesen
2003-06-01 2:54 ` Andrew Morton [this message]
2003-06-01 6:26 ` Alex Riesen
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=20030531195414.10c957b7.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=fork0@users.sourceforge.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®