Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bc252f4 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

amd-iommu: make sure only ivmd entries are parsed



The bug never triggered. But it should be fixed to protect against
broken ACPI tables in the future.

[ Impact: protect against broken ivrs acpi table ]

Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 7455aab1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -906,6 +906,8 @@ static int __init init_unity_map_range(struct ivmd_header *m)

	switch (m->type) {
	default:
		kfree(e);
		return 0;
	case ACPI_IVMD_TYPE:
		e->devid_start = e->devid_end = m->devid;
		break;