summaryrefslogtreecommitdiff
path: root/scripts/checkincludes.pl
diff options
context:
space:
mode:
authorJon Mason <jdmason@kudzu.us>2006-10-05 16:47:21 (GMT)
committerAndi Kleen <andi@basil.nowhere.org>2006-10-05 16:47:21 (GMT)
commitdedc9937e876cb5430bca6a1dccfcc2ff22f8b7c (patch)
treebefdff79af02b30ba42cfdb983343ea7ec7b363f /scripts/checkincludes.pl
parent814eadcefe79a2977a11ba135c4763a402112746 (diff)
downloadlinux-fsl-qoriq-dedc9937e876cb5430bca6a1dccfcc2ff22f8b7c.tar.xz
[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>
Diffstat (limited to 'scripts/checkincludes.pl')
0 files changed, 0 insertions, 0 deletions