diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 93a563b..621e9b3 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c @@ -421,7 +421,6 @@ static noinline void pgtable_bad(struct pt_regs *regs, printk(KERN_ALERT "%s: Corrupted page table at address %lx\n", tsk->comm, address); dump_pagetable(address); - tsk = current; tsk->thread.cr2 = address; tsk->thread.trap_no = 14; tsk->thread.error_code = error_code; @@ -795,13 +794,12 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs, unsigned long error_code) { unsigned long address; - struct task_struct *tsk; + struct task_struct *tsk = current; struct mm_struct *mm; struct vm_area_struct *vma; int write; int fault; - tsk = current; mm = tsk->mm; prefetchw(&mm->mmap_sem);