Message ID | 1413201552-2730-1-git-send-email-adami@cubiware.com (mailing list archive) |
---|---|
State | Awaiting Upstream |
Headers | show |
diff --git a/arch/sh/kernel/sys_sh.c b/arch/sh/kernel/sys_sh.c index 8c6a350..4aa294c 100644 --- a/arch/sh/kernel/sys_sh.c +++ b/arch/sh/kernel/sys_sh.c @@ -74,6 +74,7 @@ asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len, int op) up_read(¤t->mm->mmap_sem); return -EFAULT; } + up_read(¤t->mm->mmap_sem); switch (op & CACHEFLUSH_D_PURGE) { case CACHEFLUSH_D_INVAL: @@ -90,6 +91,5 @@ asmlinkage int sys_cacheflush(unsigned long addr, unsigned long len, int op) if (op & CACHEFLUSH_I) flush_icache_range(addr, addr+len); - up_read(¤t->mm->mmap_sem); return 0; }