aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/imgact_aout.c
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2002-07-06 07:00:01 +0000
committerJeff Roberson <jeff@FreeBSD.org>2002-07-06 07:00:01 +0000
commit0b2ed1aef70a66f4b258fad3488624710dba5590 (patch)
tree85e4e496d113cb252366300989c7f835842a160a /sys/kern/imgact_aout.c
parente818064e986d46f07b0696142d2b616a555d2685 (diff)
downloadsrc-0b2ed1aef70a66f4b258fad3488624710dba5590.tar.gz
src-0b2ed1aef70a66f4b258fad3488624710dba5590.zip
Clean up execve locking:
- Grab the vnode object early in exec when we still have the vnode lock. - Cache the object in the image_params. - Make use of the cached object in imgact_*.c
Notes
Notes: svn path=/head/; revision=99487
Diffstat (limited to 'sys/kern/imgact_aout.c')
-rw-r--r--sys/kern/imgact_aout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
index 41ae8cfc0178..16629d11c2ae 100644
--- a/sys/kern/imgact_aout.c
+++ b/sys/kern/imgact_aout.c
@@ -186,9 +186,9 @@ exec_aout_imgact(imgp)
vmspace = imgp->proc->p_vmspace;
vp = imgp->vp;
+ object = imgp->object;
map = &vmspace->vm_map;
vm_map_lock(map);
- VOP_GETVOBJECT(vp, &object);
vm_object_reference(object);
text_end = virtual_offset + a_out->a_text;