summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/kgdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kgdb.c b/kernel/kgdb.c
index eaa21fc9ad1d..949806ab67de 100644
--- a/kernel/kgdb.c
+++ b/kernel/kgdb.c
@@ -488,7 +488,7 @@ static int write_mem_msg(int binary)
if (err)
return err;
if (CACHE_FLUSH_IS_SAFE)
- flush_icache_range(addr, addr + length + 1);
+ flush_icache_range(addr, addr + length);
return 0;
}