mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Vnode was left referenced in the case if ELF image is broken.
Reviewed by: Peter Wemm <peter@netplex.com.au>
This commit is contained in:
parent
f2b766ceb4
commit
a3021f91e3
1 changed files with 3 additions and 1 deletions
|
|
@ -220,8 +220,10 @@ elf_load_section(struct proc *p, struct vmspace *vmspace, struct vnode *vp, vm_o
|
|||
VM_PROT_ALL,
|
||||
MAP_COPY_ON_WRITE | MAP_PREFAULT);
|
||||
vm_map_unlock(&vmspace->vm_map);
|
||||
if (rv != KERN_SUCCESS)
|
||||
if (rv != KERN_SUCCESS) {
|
||||
vm_object_deallocate(object);
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
/* we can stop now if we've covered it all */
|
||||
if (memsz == filsz)
|
||||
|
|
|
|||
Loading…
Reference in a new issue