summaryrefslogtreecommitdiff
path: root/sys/kern/kern_subr.c
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1998-02-05 03:32:49 +0000
committerJohn Dyson <dyson@FreeBSD.org>1998-02-05 03:32:49 +0000
commit95461b450d8d76f79be75d7dd0aee4adec4223fb (patch)
tree19ec035c730260d5d3bb5bf2326838b26108d09e /sys/kern/kern_subr.c
parent47cfdb166d16af183216e459e4e48aff9d2beabf (diff)
Notes
Diffstat (limited to 'sys/kern/kern_subr.c')
-rw-r--r--sys/kern/kern_subr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c
index d762ac43285b..7037a2d8648e 100644
--- a/sys/kern/kern_subr.c
+++ b/sys/kern/kern_subr.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_subr.c 8.3 (Berkeley) 1/21/94
- * $Id: kern_subr.c,v 1.16 1998/01/22 17:29:49 dyson Exp $
+ * $Id: kern_subr.c,v 1.17 1998/02/04 22:32:34 eivind Exp $
*/
#include "opt_diagnostic.h"
@@ -193,8 +193,9 @@ uioread(n, uio, obj, nread)
int error;
*nread = 0;
- if (vfs_ioopt > 1)
+ if (vfs_ioopt < 2)
return 0;
+
error = 0;
while (n > 0 && uio->uio_resid) {