Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323856
b: refs/heads/master
c: 1e6dd8a
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Ingo Molnar committed Sep 19, 2012
1 parent 37bde0e commit 176d3a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: d0616c1775035496fb355248d296fb16ea7fb235
refs/heads/master: 1e6dd8adc78d4a153db253d051fd4ef6c49c9019
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/perf_regs.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static unsigned int pt_regs_offset[PERF_REG_X86_MAX] = {

u64 perf_reg_value(struct pt_regs *regs, int idx)
{
if (WARN_ON_ONCE(idx > ARRAY_SIZE(pt_regs_offset)))
if (WARN_ON_ONCE(idx >= ARRAY_SIZE(pt_regs_offset)))
return 0;

return regs_get_register(regs, pt_regs_offset[idx]);
Expand Down

0 comments on commit 176d3a9

Please sign in to comment.