projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10c5e4e
)
sh: kgdb: Fix up NULL pointer deref by kgdb_nmicallback.
author
Paul Mundt
<lethal@linux-sh.org>
Tue, 10 Apr 2012 05:22:39 +0000
(14:22 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Tue, 10 Apr 2012 05:22:39 +0000
(14:22 +0900)
kgdb_nmicallback expects valid register state, so just fetch the register
state with get_irq_regs() as on other platforms.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/kgdb.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sh/kernel/kgdb.c
b/arch/sh/kernel/kgdb.c
index ba8e76325d128e057e6150413b5ec3f4882f5e49..38b313909ac943ac208d57ffa5584c1253331c85 100644
(file)
--- a/
arch/sh/kernel/kgdb.c
+++ b/
arch/sh/kernel/kgdb.c
@@
-313,7
+313,7
@@
BUILD_TRAP_HANDLER(singlestep)
static void kgdb_call_nmi_hook(void *ignored)
{
- kgdb_nmicallback(raw_smp_processor_id(),
NULL
);
+ kgdb_nmicallback(raw_smp_processor_id(),
get_irq_regs()
);
}
void kgdb_roundup_cpus(unsigned long flags)