about summary refs log tree commit diff
path: root/src/mman/munmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mman/munmap.c')
-rw-r--r--src/mman/munmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mman/munmap.c b/src/mman/munmap.c
index 8488d75c..359c691f 100644
--- a/src/mman/munmap.c
+++ b/src/mman/munmap.c
@@ -11,8 +11,8 @@ int __munmap(void *start, size_t len)
 {
 	int ret;
 	__vm_lock(-1);
-	ret = syscall(SYS_munmap, start, len);
 	__vm_unlock();
+	ret = syscall(SYS_munmap, start, len);
 	return ret;
 }