git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: maps: Eliminate use after free
[safe/jmp/linux-2.6]
/
kernel
/
kgdb.c
diff --git
a/kernel/kgdb.c
b/kernel/kgdb.c
index
87f2cc5
..
761fdd2
100644
(file)
--- a/
kernel/kgdb.c
+++ b/
kernel/kgdb.c
@@
-583,6
+583,9
@@
static void kgdb_wait(struct pt_regs *regs)
smp_wmb();
atomic_set(&cpu_in_kgdb[cpu], 1);
+ /* Disable any cpu specific hw breakpoints */
+ kgdb_disable_hw_debug(regs);
+
/* Wait till primary CPU is done with debugging */
while (atomic_read(&passive_cpu_wait[cpu]))
cpu_relax();