From: Neil Turton Date: Thu, 14 May 2009 13:00:35 +0000 (+0100) Subject: amd-iommu: fix an off-by-one error in the AMD IOMMU driver. X-Git-Tag: v2.6.31-rc1~408^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=421f909c803d1c397f6c66b75653f238696c39ee;p=pandora-kernel.git amd-iommu: fix an off-by-one error in the AMD IOMMU driver. The variable amd_iommu_last_bdf holds the maximum bdf of any device controlled by an IOMMU, so the number of device entries needed is amd_iommu_last_bdf+1. The function tbl_size used amd_iommu_last_bdf instead. This would be a problem if the last device were a large enough power of 2. [ Impact: fix amd_iommu_last_bdf off-by-one error ] Signed-off-by: Neil Turton Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed