]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2d0e85a41363358846707562d0ba5d12c118553
tree8783b4c106198e4e76a75a71f415a76906819f4b
parentd4c62941983a8fedc0104f4073e626d32b47b5c1
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