summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2002-09-25 02:42:04 +0000
committerJeff Roberson <jeff@FreeBSD.org>2002-09-25 02:42:04 +0000
commit0fa89fc7d91dc73ca0bd7cdda02239a082aa5d2b (patch)
treeff787ea819dd394935e8c86bde50e8899e8c0d65 /sys/compat/linux
parentd3b85e1c8b39cc3a629e386a7d342a90667c4e9d (diff)
Notes
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index a2c9a2454d82..16c8677e0f44 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -317,15 +317,15 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args)
if (error)
goto cleanup;
+ /* Pull in executable header into kernel_map */
+ error = vm_mmap(kernel_map, (vm_offset_t *)&a_out, PAGE_SIZE,
+ VM_PROT_READ, VM_PROT_READ, 0, (caddr_t)vp, 0);
/*
* Lock no longer needed
*/
- VOP_UNLOCK(vp, 0, td);
locked = 0;
+ VOP_UNLOCK(vp, 0, td);
- /* Pull in executable header into kernel_map */
- error = vm_mmap(kernel_map, (vm_offset_t *)&a_out, PAGE_SIZE,
- VM_PROT_READ, VM_PROT_READ, 0, (caddr_t)vp, 0);
if (error)
goto cleanup;