forked from Minki/linux
iommu/amd: Fix error code path in early_amd_iommu_init()
Prevent early_amd_iommu_init() from leaking memory mapped via acpi_get_table() if check_ivrs_checksum() returns an error. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
432abf68a7
commit
99e8ccd383
@ -2230,7 +2230,7 @@ static int __init early_amd_iommu_init(void)
|
||||
*/
|
||||
ret = check_ivrs_checksum(ivrs_base);
|
||||
if (ret)
|
||||
return ret;
|
||||
goto out;
|
||||
|
||||
amd_iommu_target_ivhd_type = get_highest_supported_ivhd_type(ivrs_base);
|
||||
DUMP_printk("Using IVHD type %#x\n", amd_iommu_target_ivhd_type);
|
||||
|
Loading…
Reference in New Issue
Block a user