mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
- Hold the vn lock over vm_mmap().
This commit is contained in:
parent
d3b85e1c8b
commit
0fa89fc7d9
1 changed files with 6 additions and 6 deletions
|
|
@ -317,15 +317,15 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args)
|
|||
if (error)
|
||||
goto cleanup;
|
||||
|
||||
/*
|
||||
* Lock no longer needed
|
||||
*/
|
||||
VOP_UNLOCK(vp, 0, td);
|
||||
locked = 0;
|
||||
|
||||
/* 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
|
||||
*/
|
||||
locked = 0;
|
||||
VOP_UNLOCK(vp, 0, td);
|
||||
|
||||
if (error)
|
||||
goto cleanup;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue