--- zzzz-none-000/linux-3.10.107/tools/perf/arch/sparc/util/dwarf-regs.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/tools/perf/arch/sparc/util/dwarf-regs.c 2021-02-04 17:41:59.000000000 +0000 @@ -39,5 +39,5 @@ */ const char *get_arch_regstr(unsigned int n) { - return (n <= SPARC_MAX_REGS) ? sparc_regs_table[n] : NULL; + return (n < SPARC_MAX_REGS) ? sparc_regs_table[n] : NULL; }