From: Faik Uygur <faikuygur@ttnet.net.tr>
To: linux-kernel@vger.kernel.org
Cc: mochel@osdl.org
Subject: [PATCH] 2.5.69: mtrr: MTRR 2 not used, Bug #564
Date: Sat, 10 May 2003 19:04:28 +0300 [thread overview]
Message-ID: <20030510160428.GA5415@ttnet.net.tr> (raw)
This one-liner fixes the mtrr not used bug, and addresses Bug #564
of Bugzilla.
mtrr_file_del was not decreasing the mtrr usage count so when
XFree86 was exiting, mtrr_close was trying to delete an already
deleted memory type region with the freed mtrr.
Index: arch/i386/kernel/cpu/mtrr/if.c
===================================================================
RCS file: /home/faiku/cvs/linux-2.5/arch/i386/kernel/cpu/mtrr/if.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 if.c
--- arch/i386/kernel/cpu/mtrr/if.c 10 May 2003 07:06:50 -0000 1.1.1.1
+++ arch/i386/kernel/cpu/mtrr/if.c 10 May 2003 15:14:00 -0000
@@ -49,7 +49,7 @@
struct file *file, int page)
{
int reg;
- unsigned int *fcount = file->private_data;
+ unsigned int *fcount = FILE_FCOUNT(file);
if (!page) {
if ((base & (PAGE_SIZE - 1)) || (size & (PAGE_SIZE - 1)))
reply other threads:[~2003-05-10 15:52 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=20030510160428.GA5415@ttnet.net.tr \
--to=faikuygur@ttnet.net.tr \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.