kgdb,arm: fix register dump
authorRabin Vincent <rabin@rab.in>
Tue, 26 Oct 2010 17:49:00 +0000 (12:49 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 29 Oct 2010 18:14:40 +0000 (13:14 -0500)
commit834b2964b7ab047610da038e42d61dc8dac6339a
tree8783b4c106198e4e76a75a71f415a76906819f4b
parent931ea24819f2bd40cca2dc214558bfcc3c91549e
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>
arch/arm/include/asm/kgdb.h
arch/arm/kernel/kgdb.c