aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/i386/linux/linux_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c
index 23357cd2701fc..5aea62a7d809b 100644
--- a/sys/i386/linux/linux_machdep.c
+++ b/sys/i386/linux/linux_machdep.c
@@ -121,7 +121,7 @@ linux_execve(struct thread *td, struct linux_execve_args *args)
args->argp, args->envp);
free(newpath, M_TEMP);
if (error == 0)
- kern_execve(td, &eargs, NULL);
+ error = kern_execve(td, &eargs, NULL);
exec_free_args(&eargs);
return (error);
}