Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302728
b: refs/heads/master
c: fefe1ed
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Ingo Molnar committed May 14, 2012
1 parent 8ce8fc4 commit a599694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c558df4a01a9ec7b02303aba808d1e5044822add
refs/heads/master: fefe1ed1398b81e3fadc92d11d91162d343c8836
4 changes: 2 additions & 2 deletions trunk/drivers/iommu/dmar.c
Original file line number Diff line number Diff line change
Expand Up @@ -1057,8 +1057,8 @@ static const char *irq_remap_fault_reasons[] =

const char *dmar_get_fault_reason(u8 fault_reason, int *fault_type)
{
if (fault_reason >= 0x20 && (fault_reason <= 0x20 +
ARRAY_SIZE(irq_remap_fault_reasons))) {
if (fault_reason >= 0x20 && (fault_reason - 0x20 <
ARRAY_SIZE(irq_remap_fault_reasons))) {
*fault_type = INTR_REMAP;
return irq_remap_fault_reasons[fault_reason - 0x20];
} else if (fault_reason < ARRAY_SIZE(dma_remap_fault_reasons)) {
Expand Down

0 comments on commit a599694

Please sign in to comment.