summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/vfs_syscalls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 26a21e3..ae408ca 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -4699,10 +4699,10 @@ kern_posix_fallocate(struct thread *td, int fd, off_t offset, off_t len)
error = ENODEV;
goto out;
}
- if ((fp->f_flag & FWRITE) == 0) {
- error = EBADF;
+ if ((fp->f_flag & FWRITE) == 0) {
+ error = EBADF;
goto out;
- }
+ }
vp = fp->f_vnode;
if (vp->v_type != VREG) {
error = ENODEV;
OpenPOWER on IntegriCloud