--- zzzz-none-000/linux-3.10.107/tools/perf/arch/sh/util/dwarf-regs.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/tools/perf/arch/sh/util/dwarf-regs.c 2021-02-04 17:41:59.000000000 +0000 @@ -51,5 +51,5 @@ /* 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; }