diff options
Diffstat (limited to 'arch/powerpc/mm/fault.c')
-rw-r--r-- | arch/powerpc/mm/fault.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 35d0760c3fa4..99b2f2775658 100644 --- a/arch/powerpc/mm/fault.c +++ b/arch/powerpc/mm/fault.c | |||
@@ -507,7 +507,6 @@ bail: | |||
507 | void bad_page_fault(struct pt_regs *regs, unsigned long address, int sig) | 507 | void bad_page_fault(struct pt_regs *regs, unsigned long address, int sig) |
508 | { | 508 | { |
509 | const struct exception_table_entry *entry; | 509 | const struct exception_table_entry *entry; |
510 | unsigned long *stackend; | ||
511 | 510 | ||
512 | /* Are we prepared to handle this fault? */ | 511 | /* Are we prepared to handle this fault? */ |
513 | if ((entry = search_exception_tables(regs->nip)) != NULL) { | 512 | if ((entry = search_exception_tables(regs->nip)) != NULL) { |
@@ -536,8 +535,7 @@ void bad_page_fault(struct pt_regs *regs, unsigned long address, int sig) | |||
536 | printk(KERN_ALERT "Faulting instruction address: 0x%08lx\n", | 535 | printk(KERN_ALERT "Faulting instruction address: 0x%08lx\n", |
537 | regs->nip); | 536 | regs->nip); |
538 | 537 | ||
539 | stackend = end_of_stack(current); | 538 | if (task_stack_end_corrupted(current)) |
540 | if (*stackend != STACK_END_MAGIC) | ||
541 | printk(KERN_ALERT "Thread overran stack, or stack corrupted\n"); | 539 | printk(KERN_ALERT "Thread overran stack, or stack corrupted\n"); |
542 | 540 | ||
543 | die("Kernel access of bad area", regs, sig); | 541 | die("Kernel access of bad area", regs, sig); |