summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorSebastien Marie <semarie@cvs.openbsd.org>2016-06-26 14:27:15 +0000
committerSebastien Marie <semarie@cvs.openbsd.org>2016-06-26 14:27:15 +0000
commitad12963a9f79ca2f8ac913e0b2410761d809c4af (patch)
tree611d46def96120dc164cb848242973c30ac965a3 /sys/kern/vfs_syscalls.c
parent7458cde27acf26f2535641da929da7b6a88cb1a5 (diff)
use error code path instead of return early without calling VOP_ABORTOP() and
vrele()/vput(). ok deraadt@
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 8cf313f81ca..ffaaefa6380 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls.c,v 1.256 2016/06/01 22:54:45 millert Exp $ */
+/* $OpenBSD: vfs_syscalls.c,v 1.257 2016/06/26 14:27:14 semarie Exp $ */
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@ -1254,7 +1254,8 @@ domknodat(struct proc *p, int fd, const char *path, mode_t mode, dev_t dev)
break;
case S_IFIFO:
#ifndef FIFO
- return (EOPNOTSUPP);
+ error = EOPNOTSUPP;
+ break;
#else
if (dev == 0) {
vattr.va_type = VFIFO;