kgdb,arm: fix register dump

DBG_MAX_REG_NUM incorrectly had the number of indices in the GDB regs
array rather than the number of registers, leading to an oops when the
"rd" command is used in KDB.

Cc: stable@kernel.org
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
This commit is contained in:
Rabin Vincent 2010-10-26 12:49:00 -05:00 • committed by Jason Wessel
commit 834b2964b7
2 changed files with 4 additions and 3 deletions