]> 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)
committerWilly Tarreau <w@1wt.eu>
Sat, 11 Feb 2012 14:37:30 +0000 (15:37 +0100)
commit7b68dbd91fa2e635361b94d3e9c56cc6bad7a24e
tree50aa86504d9fd04d538a5144ca216faff9a4cf08
parent496b8ba4f8581311718b19466f57f423a6b69bb5
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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/x86/kernel/amd_iommu_init.c