diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/amd_iommu_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c index 53f93db54c4d..a3a2b98bb39e 100644 --- a/arch/x86/kernel/amd_iommu_init.c +++ b/arch/x86/kernel/amd_iommu_init.c | |||
@@ -906,6 +906,8 @@ static int __init init_unity_map_range(struct ivmd_header *m) | |||
906 | 906 | ||
907 | switch (m->type) { | 907 | switch (m->type) { |
908 | default: | 908 | default: |
909 | kfree(e); | ||
910 | return 0; | ||
909 | case ACPI_IVMD_TYPE: | 911 | case ACPI_IVMD_TYPE: |
910 | e->devid_start = e->devid_end = m->devid; | 912 | e->devid_start = e->devid_end = m->devid; |
911 | break; | 913 | break; |