These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / tools / perf / arch / sh / util / dwarf-regs.c
index 0d0897f..f8dfa89 100644 (file)
@@ -51,5 +51,5 @@ const char *sh_regs_table[SH_MAX_REGS] = {
 /* Return architecture dependent register string (for kprobe-tracer) */
 const char *get_arch_regstr(unsigned int n)
 {
-       return (n <= SH_MAX_REGS) ? sh_regs_table[n] : NULL;
+       return (n < SH_MAX_REGS) ? sh_regs_table[n] : NULL;
 }