Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136341
b: refs/heads/master
c: 8e1568f
h: refs/heads/master
i:
  136339: 7b36180
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Feb 11, 2009
1 parent 0bb9f2f commit 2324d94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b825e6cc7b1401862531df497a4a4daff8102ed5
refs/heads/master: 8e1568f3500287d0b36c9776132cb53a42d5651d
7 changes: 5 additions & 2 deletions trunk/drivers/pci/dmar.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
LIST_HEAD(dmar_drhd_units);

static struct acpi_table_header * __initdata dmar_tbl;
static acpi_size dmar_tbl_size;

static void __init dmar_register_drhd_unit(struct dmar_drhd_unit *drhd)
{
Expand Down Expand Up @@ -288,8 +289,9 @@ static int __init dmar_table_detect(void)
acpi_status status = AE_OK;

/* if we could find DMAR table, then there are DMAR devices */
status = acpi_get_table(ACPI_SIG_DMAR, 0,
(struct acpi_table_header **)&dmar_tbl);
status = acpi_get_table_with_size(ACPI_SIG_DMAR, 0,
(struct acpi_table_header **)&dmar_tbl,
&dmar_tbl_size);

if (ACPI_SUCCESS(status) && !dmar_tbl) {
printk (KERN_WARNING PREFIX "Unable to map DMAR\n");
Expand Down Expand Up @@ -481,6 +483,7 @@ void __init detect_intel_iommu(void)
iommu_detected = 1;
#endif
}
early_acpi_os_unmap_memory(dmar_tbl, dmar_tbl_size);
dmar_tbl = NULL;
}

Expand Down

0 comments on commit 2324d94

Please sign in to comment.