summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2012-06-13 21:38:07 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2012-06-13 21:38:07 +0000
commit7080f124d2a2993dc6aa5b253bdc1dcad6255ced (patch)
tree2f8d78a45216c349de8b06d7df43db11704f6779 /sys/kern/vfs_syscalls.c
parent3812dcd3dece33af84ab6f189b678ab439d3f5fb (diff)
downloadsrc-test2-7080f124d2a2993dc6aa5b253bdc1dcad6255ced.tar.gz
src-test2-7080f124d2a2993dc6aa5b253bdc1dcad6255ced.zip
Notes
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 9d3d4eb57a66..3c719d7f1b01 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1237,8 +1237,7 @@ success:
bad:
VFS_UNLOCK_GIANT(vfslocked);
bad_unlocked:
- if (indx != -1)
- fdclose(fdp, fp, indx, td);
+ KASSERT(indx == -1, ("indx=%d, should be -1", indx));
fdrop(fp, td);
return (error);
}