lkml.org 
[lkml]   [2008]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86/pci: fix dmar_tbl early_ioremap leak
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


\
 
 \ /
  Last update: 2008-09-25 08:51    [W:0.054 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site