iommu/amd: Fix error code path in early_amd_iommu_init()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 10 Jan 2017 13:57:28 +0000 (14:57 +0100)
committerJoerg Roedel <jroedel@suse.de>
Tue, 10 Jan 2017 13:57:34 +0000 (14:57 +0100)
commit99e8ccd3837a1028c98559d3c19e8b796eb9906c
tree19b1d77af1fade4dd5ddf4689892ba056a1e90dd
parent432abf68a79332282329286d190e21fe3ac02a31
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>
drivers/iommu/amd_iommu_init.c