diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/debug/kdb/kdb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c index 8875254120b6..a52493a66cf2 100644 --- a/kernel/debug/kdb/kdb_main.c +++ b/kernel/debug/kdb/kdb_main.c | |||
@@ -2739,7 +2739,7 @@ int kdb_register_repeat(char *cmd, | |||
2739 | (kdb_max_commands - KDB_BASE_CMD_MAX) * sizeof(*new)); | 2739 | (kdb_max_commands - KDB_BASE_CMD_MAX) * sizeof(*new)); |
2740 | kfree(kdb_commands); | 2740 | kfree(kdb_commands); |
2741 | } | 2741 | } |
2742 | memset(new + kdb_max_commands, 0, | 2742 | memset(new + kdb_max_commands - KDB_BASE_CMD_MAX, 0, |
2743 | kdb_command_extend * sizeof(*new)); | 2743 | kdb_command_extend * sizeof(*new)); |
2744 | kdb_commands = new; | 2744 | kdb_commands = new; |
2745 | kp = kdb_commands + kdb_max_commands - KDB_BASE_CMD_MAX; | 2745 | kp = kdb_commands + kdb_max_commands - KDB_BASE_CMD_MAX; |