From: Troy Heber Date: Wed, 19 Aug 2009 21:26:11 +0000 (-0600) Subject: pci/dmar: correct off-by-one error in dmar_fault() X-Git-Tag: v2.6.32-rc1~162^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8211a7b5857914058c52ae977c96463e419b37ab;p=pandora-kernel.git pci/dmar: correct off-by-one error in dmar_fault() DMAR faults are recorded into a ring of "fault recording registers". fault_index is a 0-based index into the ring. The code allows the 0-based fault_index to be equal to the total number of fault registers available from the cap_num_fault_regs() macro, which causes access beyond the last available register. Signed-off-by Troy Heber Signed-off-by: David Woodhouse --- Reading git-diff-tree failed