diff options
Diffstat (limited to 'arch/sparc/kernel/sys_sparc_64.c')
-rw-r--r-- | arch/sparc/kernel/sys_sparc_64.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c index 3ee51f189a55..275f74fd6f6a 100644 --- a/arch/sparc/kernel/sys_sparc_64.c +++ b/arch/sparc/kernel/sys_sparc_64.c | |||
@@ -580,16 +580,9 @@ SYSCALL_DEFINE5(64_mremap, unsigned long, addr, unsigned long, old_len, | |||
580 | unsigned long, new_len, unsigned long, flags, | 580 | unsigned long, new_len, unsigned long, flags, |
581 | unsigned long, new_addr) | 581 | unsigned long, new_addr) |
582 | { | 582 | { |
583 | unsigned long ret = -EINVAL; | ||
584 | |||
585 | if (test_thread_flag(TIF_32BIT)) | 583 | if (test_thread_flag(TIF_32BIT)) |
586 | goto out; | 584 | return -EINVAL; |
587 | 585 | return sys_mremap(addr, old_len, new_len, flags, new_addr); | |
588 | down_write(¤t->mm->mmap_sem); | ||
589 | ret = do_mremap(addr, old_len, new_len, flags, new_addr); | ||
590 | up_write(¤t->mm->mmap_sem); | ||
591 | out: | ||
592 | return ret; | ||
593 | } | 586 | } |
594 | 587 | ||
595 | /* we come to here via sys_nis_syscall so it can setup the regs argument */ | 588 | /* we come to here via sys_nis_syscall so it can setup the regs argument */ |