]> git.baikalelectronics.ru Git - kernel.git/commit
x86/amd-iommu: Fix crash when request_mem_region fails
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 28 May 2010 12:26:48 +0000 (14:26 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 1 Jun 2010 08:03:08 +0000 (10:03 +0200)
commit220684cff8aa5109ffa4312b70a5382e3cccacc8
tree4bc5c676e46c26083e46b77907fe7d588831f4f5
parentfa51a06b0f507cb928ba37b53c242e685453dae7
x86/amd-iommu: Fix crash when request_mem_region fails

When request_mem_region fails the error path tries to
disable the IOMMUs. This accesses the mmio-region which was
not allocated leading to a kernel crash. This patch fixes
the issue.

Cc: stable@kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu_init.c