Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199755
b: refs/heads/master
c: e82752d
h: refs/heads/master
i:
  199753: 44a5e53
  199751: 6d9ff0e
v: v3
  • Loading branch information
Joerg Roedel committed Jun 1, 2010
1 parent 9ad15c9 commit 382cc39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 1d61e73ab4c7470833241af888939a7aab2b0354
refs/heads/master: e82752d8b5a7e0a5e4d607fd8713549e2a4e2741
11 changes: 8 additions & 3 deletions trunk/arch/x86/kernel/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,12 @@ static u8 * __init iommu_map_mmio_space(u64 address)
{
u8 *ret;

if (!request_mem_region(address, MMIO_REGION_LENGTH, "amd_iommu"))
if (!request_mem_region(address, MMIO_REGION_LENGTH, "amd_iommu")) {
pr_err("AMD-Vi: Can not reserve memory region %llx for mmio\n",
address);
pr_err("AMD-Vi: This is a BIOS bug. Please contact your hardware vendor\n");
return NULL;
}

ret = ioremap_nocache(address, MMIO_REGION_LENGTH);
if (ret != NULL)
Expand Down Expand Up @@ -1314,7 +1318,7 @@ static int __init amd_iommu_init(void)
ret = amd_iommu_init_dma_ops();

if (ret)
goto free;
goto free_disable;

amd_iommu_init_api();

Expand All @@ -1332,9 +1336,10 @@ static int __init amd_iommu_init(void)
out:
return ret;

free:
free_disable:
disable_iommus();

free:
amd_iommu_uninit_devices();

free_pages((unsigned long)amd_iommu_pd_alloc_bitmap,
Expand Down

0 comments on commit 382cc39

Please sign in to comment.