]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/amd-iommu: Fix 3 possible endless loops
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 6 Jun 2011 14:04:02 +0000 (16:04 +0200)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:20:47 +0000 (11:20 -0400)
commit768d9d126c2f2aa56398bf475161e86efbb0d13c
tree331a9eade767f1c75a86514d9346fa99df4c5f85
parentfcd3023216796cf11036c4e9bf16cdca5de7da68
x86/amd-iommu: Fix 3 possible endless loops

commit 0de66d5b35ee148455e268b2782873204ffdef4b upstream.

The driver contains several loops counting on an u16 value
where the exit-condition is checked against variables that
can have values up to 0xffff. In this case the loops will
never exit. This patch fixed 3 such loops.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/x86/kernel/amd_iommu_init.c