summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-04-15 20:02:20 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-04-15 20:02:20 +0000
commit71aa1e0febab161c1705df979c783404cc056a2f (patch)
tree3965b7fad0dc7bcdb0e225c8d3d61588419328f3 /sys/kern
parent8d041a6271be114a06f362fc190099514b76c9db (diff)
Repair FIOGETOWN operation; from Alexandre Ratchov.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sys_generic.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c
index f620f8c3217..7192990a2b0 100644
--- a/sys/kern/sys_generic.c
+++ b/sys/kern/sys_generic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_generic.c,v 1.53 2006/03/26 17:47:10 mickey Exp $ */
+/* $OpenBSD: sys_generic.c,v 1.54 2006/04/15 20:02:19 miod Exp $ */
/* $NetBSD: sys_generic.c,v 1.24 1996/03/29 00:25:32 cgd Exp $ */
/*
@@ -594,14 +594,14 @@ sys_ioctl(struct proc *p, void *v, register_t *retval)
default:
error = (*fp->f_ops->fo_ioctl)(fp, com, data, p);
- /*
- * Copy any data to user, size was
- * already set and checked above.
- */
- if (error == 0 && (com&IOC_OUT) && size)
- error = copyout(data, SCARG(uap, data), (u_int)size);
break;
}
+ /*
+ * Copy any data to user, size was
+ * already set and checked above.
+ */
+ if (error == 0 && (com&IOC_OUT) && size)
+ error = copyout(data, SCARG(uap, data), (u_int)size);
out:
FRELE(fp);
if (memp)