summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-11-18 08:09:08 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-11-18 08:09:08 +0000
commita0eaaecb792aa3e4808c861323a6834dcefe3d6e (patch)
tree23d48b40ff440b09c20cfc6d2a7241a6a2a41192 /sys/kern
parentbf868e66466c4c5d4367bd8c17abc94391297635 (diff)
Notes
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_descrip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 2b037edd34bf..b698d928e3b8 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -548,9 +548,10 @@ ofstat(p, uap)
panic("ofstat");
/*NOTREACHED*/
}
- cvtstat(&ub, &oub);
- if (error == 0)
+ if (error == 0) {
+ cvtstat(&ub, &oub);
error = copyout((caddr_t)&oub, (caddr_t)uap->sb, sizeof (oub));
+ }
return (error);
}
#endif /* COMPAT_43 || COMPAT_SUNOS */