kdb: fix crash when KDB_BASE_CMD_MAX is exceeded
authorJovi Zhang <bookjovi@gmail.com>
Wed, 10 Nov 2010 13:22:18 +0000 (07:22 -0600)
committerJason Wessel <jason.wessel@windriver.com>
Wed, 17 Nov 2010 19:54:57 +0000 (13:54 -0600)
commit5450d904054b4ed582793ad6ecb5469f03cc4c46
tree025a63a774f56b02e001cd49ead0c26f428cbb9b
parent85e76ab50aecbdc9011806f2f8943450ccb0d93c
kdb: fix crash when KDB_BASE_CMD_MAX is exceeded

When the number of dyanmic kdb commands exceeds KDB_BASE_CMD_MAX, the
kernel will fault.

Signed-off-by: Jovi Zhang <bookjovi@gmail.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
kernel/debug/kdb/kdb_main.c