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)
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>

No differences found