x86/amd-iommu: Fix initialization failure panic
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 21 Dec 2009 14:51:23 +0000 (15:51 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 23:03:57 +0000 (15:03 -0800)
commite93166f10c741f247c7e172936811bad558b4135
tree0e8d0ec117879cf69dd12cbdca3b69d257a33f6d
parentcd7bc18e0908a287e64cf4593a480b613b07fdce
x86/amd-iommu: Fix initialization failure panic

commit 0f764806438d5576ac58898332e5dcf30bb8a679 upstream.

The assumption that acpi_table_parse passes the return value
of the hanlder function to the caller proved wrong
recently. The return value of the handler function is
totally ignored. This makes the initialization code for AMD
IOMMU buggy in a way that could cause a kernel panic on
initialization. This patch fixes the issue in the AMD IOMMU
driver.

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