aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh64/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh64/mm/fault.c')
-rw-r--r--arch/sh64/mm/fault.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sh64/mm/fault.c b/arch/sh64/mm/fault.c
index f08d0eaf6497..8e2f6c28b739 100644
--- a/arch/sh64/mm/fault.c
+++ b/arch/sh64/mm/fault.c
@@ -277,7 +277,7 @@ bad_area:
277 show_regs(regs); 277 show_regs(regs);
278#endif 278#endif
279 } 279 }
280 if (tsk->pid == 1) { 280 if (is_init(tsk)) {
281 panic("INIT had user mode bad_area\n"); 281 panic("INIT had user mode bad_area\n");
282 } 282 }
283 tsk->thread.address = address; 283 tsk->thread.address = address;
@@ -319,14 +319,14 @@ no_context:
319 * us unable to handle the page fault gracefully. 319 * us unable to handle the page fault gracefully.
320 */ 320 */
321out_of_memory: 321out_of_memory:
322 if (current->pid == 1) { 322 if (is_init(current)) {
323 panic("INIT out of memory\n"); 323 panic("INIT out of memory\n");
324 yield(); 324 yield();
325 goto survive; 325 goto survive;
326 } 326 }
327 printk("fault:Out of memory\n"); 327 printk("fault:Out of memory\n");
328 up_read(&mm->mmap_sem); 328 up_read(&mm->mmap_sem);
329 if (current->pid == 1) { 329 if (is_init(current)) {
330 yield(); 330 yield();
331 down_read(&mm->mmap_sem); 331 down_read(&mm->mmap_sem);
332 goto survive; 332 goto survive;