diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index e675b09..bdb1639 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -4528,7 +4528,7 @@ sys_posix_fallocate(struct thread *td, struct posix_fallocate_args *uap) td->td_retval[0] = kern_posix_fallocate(td, uap->fd, uap->offset, uap->len); - return (0); + return (td->td_retval[0]); } /* @@ -4665,5 +4665,5 @@ sys_posix_fadvise(struct thread *td, struct posix_fadvise_args *uap) td->td_retval[0] = kern_posix_fadvise(td, uap->fd, uap->offset, uap->len, uap->advice); - return (0); + return (td->td_retval[0]); }