]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:24 +0000 (11:22 -0700)
commitfdb4f05da375cad6e74a6ba5d07dbb7a97d5c8c7
treec5f7dcbc614f2540b0f8d40fe766e9787c3f4b12
parent65aa78d8d9621fb72bbf37a25a7bb1cc745ec171
x86/amd-iommu: Fix crash when request_mem_region fails

commit e82752d8b5a7e0a5e4d607fd8713549e2a4e2741 upstream.

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.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/amd_iommu_init.c