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)
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

Simple merge