OSDN Git Service

iommu/vt-d: Fix error handling in ANDD processing
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 1 Apr 2014 13:58:36 +0000 (14:58 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 1 Apr 2014 13:58:38 +0000 (14:58 +0100)
commit7713ec066ae8adc49dd8daa02a73e6b60af6ee5f
treeeb824019a51e154555eac234062393d17d66aa59
parent14d405699634d4ce0adfc7b4f52ac7427220a98d
iommu/vt-d: Fix error handling in ANDD processing

If we failed to find an ACPI device to correspond to an ANDD record, we
would fail to increment our pointer and would just process the same record
over and over again, with predictable results.

Turn it from a while() loop into a for() loop to let the 'continue' in
the error paths work correctly.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/iommu/dmar.c