From 777190167dad1f139f9b49982ab3169751b2ed47 Mon Sep 17 00:00:00 2001 From: yamt Date: Sun, 4 May 2003 11:40:22 +0000 Subject: [PATCH] fix handling of the case that readsize == 0. --- sys/nfs/nfs_serv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index 25eb81685e4d..85e318794e6e 100644 --- a/sys/nfs/nfs_serv.c +++ b/sys/nfs/nfs_serv.c @@ -1,4 +1,4 @@ -/* $NetBSD: nfs_serv.c,v 1.72 2003/05/03 18:36:26 yamt Exp $ */ +/* $NetBSD: nfs_serv.c,v 1.73 2003/05/04 11:40:22 yamt Exp $ */ /* * Copyright (c) 1989, 1993 @@ -59,7 +59,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: nfs_serv.c,v 1.72 2003/05/03 18:36:26 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: nfs_serv.c,v 1.73 2003/05/04 11:40:22 yamt Exp $"); #include #include @@ -656,7 +656,7 @@ nfsrv_read(nfsd, slp, procp, mrq) tl += (NFSX_V2FATTR / sizeof (u_int32_t)); } len = left = cnt; - if (cnt >= 0) { + if (cnt > 0) { if (nfsd_use_loan) { struct vm_page **pgpp; voff_t pgoff = trunc_page(off);