]> 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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:28:40 +0000 (15:28 -0700)
commit1ad5dd3646a62af901a4409e7cb3d7f39f58ab9b
tree4bf687a2432dd64b975605e5f3a6dd7a772f405a
parent51a2520ca82d8a02baaef9f16610eceb8f85a283
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: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/amd_iommu_init.c