From: Jon Mason Date: Thu, 5 Oct 2006 16:47:21 +0000 (+0200) Subject: [PATCH] x86-64: Calgary IOMMU: deobfuscate calgary_init X-Git-Tag: v2.6.19-rc2~316^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dedc9937e876cb5430bca6a1dccfcc2ff22f8b7c;p=pandora-kernel.git [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 Signed-off-by: Muli Ben-Yehuda Signed-off-by: Andi Kleen --- Reading git-diff-tree failed