aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/kgdb.c
diff options
context:
space:
mode:
authorAtsuo Igarashi <atsuo_igarashi@tripeaks.co.jp>2008-09-26 11:36:41 -0400
committerJason Wessel <jason.wessel@windriver.com>2008-09-26 11:36:41 -0400
commit18d6522b86d21a04c8ac1ea79747e2e434a956d9 (patch)
tree4df66d758f79eb7c71352e3de57d63df7156bac3 /kernel/kgdb.c
parent6ef190cc92e33565accff6a320f0e7d90480bfe7 (diff)
kgdb: could not write to the last of valid memory with kgdb
On the ARM architecture, kgdb will crash the kernel if the last byte of valid memory is written due to a flush_icache_range flushing beyond the memory boundary. Signed-off-by: Atsuo Igarashi <atsuo_igarashi@tripeaks.co.jp> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'kernel/kgdb.c')
-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)
488 if (err) 488 if (err)
489 return err; 489 return err;
490 if (CACHE_FLUSH_IS_SAFE) 490 if (CACHE_FLUSH_IS_SAFE)
491 flush_icache_range(addr, addr + length + 1); 491 flush_icache_range(addr, addr + length);
492 return 0; 492 return 0;
493 } 493 }
494 494