diff options
-rw-r--r-- | arch/x86/mm/fault.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 46ac96aa7c81..fb4e39c4e0a9 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c | |||
@@ -1014,8 +1014,6 @@ static void | |||
1014 | do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address, | 1014 | do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address, |
1015 | vm_fault_t fault) | 1015 | vm_fault_t fault) |
1016 | { | 1016 | { |
1017 | struct task_struct *tsk = current; | ||
1018 | |||
1019 | /* Kernel mode? Handle exceptions or die: */ | 1017 | /* Kernel mode? Handle exceptions or die: */ |
1020 | if (!(error_code & X86_PF_USER)) { | 1018 | if (!(error_code & X86_PF_USER)) { |
1021 | no_context(regs, error_code, address, SIGBUS, BUS_ADRERR); | 1019 | no_context(regs, error_code, address, SIGBUS, BUS_ADRERR); |
@@ -1030,6 +1028,7 @@ do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address, | |||
1030 | 1028 | ||
1031 | #ifdef CONFIG_MEMORY_FAILURE | 1029 | #ifdef CONFIG_MEMORY_FAILURE |
1032 | if (fault & (VM_FAULT_HWPOISON|VM_FAULT_HWPOISON_LARGE)) { | 1030 | if (fault & (VM_FAULT_HWPOISON|VM_FAULT_HWPOISON_LARGE)) { |
1031 | struct task_struct *tsk = current; | ||
1033 | unsigned lsb = 0; | 1032 | unsigned lsb = 0; |
1034 | 1033 | ||
1035 | pr_err( | 1034 | pr_err( |