aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/linux/imgact_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/linux/imgact_linux.c')
-rw-r--r--sys/i386/linux/imgact_linux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/i386/linux/imgact_linux.c b/sys/i386/linux/imgact_linux.c
index 268936d6f841..ce067d548027 100644
--- a/sys/i386/linux/imgact_linux.c
+++ b/sys/i386/linux/imgact_linux.c
@@ -119,7 +119,9 @@ exec_linux_imgact(struct image_params *imgp)
/*
* Destroy old process VM and create a new one (with a new stack)
*/
- exec_new_vmspace(imgp, &linux_sysvec);
+ error = exec_new_vmspace(imgp, &linux_sysvec);
+ if (error)
+ goto fail;
vmspace = imgp->proc->p_vmspace;
/*