Jon Mason dedc9937e8 [PATCH] x86-64: Calgary IOMMU: deobfuscate calgary_init
calgary_init's for loop does not correspond to the actual device being
checked, which makes its upperbound check for array overflow useless.
Changing this to a do-while loop is the correct way of doing this.
There should be no possibility of spinning forever in this loop, as
pci_get_device states that it will go through all iterations, then
return NULL (thus breaking the loop).

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
2006-10-05 18:47:21 +02:00
..
2006-10-03 22:34:14 +02:00
2006-10-05 18:47:21 +02:00
2006-10-04 18:06:15 +01:00
2006-10-03 23:01:26 +02:00
2006-10-03 23:01:26 +02:00
2006-10-03 23:01:26 +02:00