kgdb,arm: fix register dump
commit91b0288c73e17ab591c142296985808ba6f61a79
authorRabin Vincent <rabin@rab.in>
Tue, 26 Oct 2010 17:49:00 +0000 (26 12:49 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 19:03:17 +0000 (22 11:03 -0800)
tree0d062ba28da664264d47fcd4bf4a5d9882ae4954
parent6bd415f814fe58a973d494c0669c09c8bacdf8f4
kgdb,arm: fix register dump

commit 834b2964b7ab047610da038e42d61dc8dac6339a upstream.

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.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/include/asm/kgdb.h
arch/arm/kernel/kgdb.c