summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorMatthew D Fleming <mdf@FreeBSD.org>2011-04-18 16:40:47 +0000
committerMatthew D Fleming <mdf@FreeBSD.org>2011-04-18 16:40:47 +0000
commit5d253e418f9bfd54bfa6b36f431b95fe81df3f3b (patch)
tree6c38b2029a4429f47189eaaebfd03d5e43096f6f /sys/kern/vfs_syscalls.c
parent7323776b0142fa75db8b8ffda8d6776f4558dc4e (diff)
downloadsrc-test2-5d253e418f9bfd54bfa6b36f431b95fe81df3f3b.tar.gz
src-test2-5d253e418f9bfd54bfa6b36f431b95fe81df3f3b.zip
Notes
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-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 26a21e3b585b..ae408ca03e6e 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;