pci/dmar: correct off-by-one error in dmar_fault()
authorTroy Heber <troy.heber@hp.com>
Wed, 19 Aug 2009 21:26:11 +0000 (15:26 -0600)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 30 Aug 2009 18:05:04 +0000 (19:05 +0100)
commit8211a7b5857914058c52ae977c96463e419b37ab
tree3a3d61d43dd08892d0d1bb1ffa8dc635f634b31e
parent2ff729f5445cc47d1910386c36e53fc6b1c5e47a
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 <troy.heber@hp.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/dmar.c
This page took 0.042716 seconds and 5 git commands to generate.