x86/amd-iommu: Fix possible integer overflow
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 22 Jan 2010 15:40:20 +0000 (16:40 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 22 Jan 2010 15:48:57 +0000 (16:48 +0100)
The variable i in this function could be increased to over
2**32 which would result in an integer overflow when using
int. Fix it by changing i to unsigned long.

Cc: stable@kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>

No differences found