From: "Yinghai Lu" <yinghai@kernel.org>
To: "Suresh Siddha" <suresh.b.siddha@intel.com>,
"Jesse Barnes" <jbarnes@virtuousgeek.org>,
"Ingo Molnar" <mingo@elte.hu>,
"Thomas Gleixner" <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
"Andrew Morton" <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
"Yinghai Lu" <yhlu.kernel@gmail.com>
Subject: Re: [PATCH] x86/pci: fix dmar_tbl early_ioremap leak
Date: Wed, 24 Sep 2008 23:48:31 -0700 [thread overview]
Message-ID: <86802c440809242348g10939ca2p79b5bd1ce7e5fac0@mail.gmail.com> (raw)
In-Reply-To: <1222324048-13853-1-git-send-email-yhlu.kernel@gmail.com>
On Wed, Sep 24, 2008 at 11:27 PM, Yinghai Lu <yhlu.kernel@gmail.com> wrote:
> use early_acpi_os_unmap_memory
>
> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
>
> ---
> drivers/pci/dmar.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> Index: linux-2.6/drivers/pci/dmar.c
> ===================================================================
> --- linux-2.6.orig/drivers/pci/dmar.c
> +++ linux-2.6/drivers/pci/dmar.c
> @@ -42,6 +42,7 @@
> LIST_HEAD(dmar_drhd_units);
>
> static struct acpi_table_header * __initdata dmar_tbl;
> +static acpi_size __initdata dmar_tbl_size;
>
> static void __init dmar_register_drhd_unit(struct dmar_drhd_unit *drhd)
> {
> @@ -296,9 +297,13 @@ static int __init dmar_table_detect(void
> {
> acpi_status status = AE_OK;
>
> + if (dmar_tbl)
> + early_acpi_os_unmap_memory(dmar_tbl, dmar_tbl_size);
> +
need more work..
YH
prev parent reply other threads:[~2008-09-25 6:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 6:27 Yinghai Lu
2008-09-25 6:48 ` Yinghai Lu [this message]
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=86802c440809242348g10939ca2p79b5bd1ce7e5fac0@mail.gmail.com \
--to=yinghai@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=hpa@zytor.com \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=suresh.b.siddha@intel.com \
--cc=tglx@linutronix.de \
--cc=yhlu.kernel@gmail.com \
/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®