diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2018-06-21 14:23:32 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2018-06-21 14:28:24 +0200 |
commit | 6d98db9275dbec0535ca5c7fa3806c46724bce19 (patch) | |
tree | 6f0c20b26b60aa5061aab52d0b4c5fea775ff4a6 | |
parent | a22bba40b367dea7bdff80dde21c423e58debfbf (diff) | |
download | linux-3.17-stable.tar.gz |
MIPS: Fix missing assignment in SIGSEGV handling.linux-3.17-stable
This was introduced by fcf40a9d99e9, a bad backport of abe687d221b4
("MIPS: traps: return correct si code for accessing nonmapped addresses").
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
(cherry picked from commit 44657b4e6c9006a9bbdaedebfb8735f12fbf19a4)
-rw-r--r-- | arch/mips/kernel/traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index b58439df6d5784..f00d2a7c11a362 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -707,7 +707,7 @@ int process_fpemu_return(int sig, void __user *fault_addr) si.si_signo = sig; if (sig == SIGSEGV) { down_read(¤t->mm->mmap_sem); - find_vma(current->mm, (unsigned long)fault_addr); + vma = find_vma(current->mm, (unsigned long)fault_addr); if (vma && (vma->vm_start <= (unsigned long)fault_addr)) si.si_code = SEGV_ACCERR; else |