Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/nfs fix a use of an uninitialized variable.



details:   https://anonhg.NetBSD.org/src/rev/3b96a8e22d53
branches:  trunk
changeset: 545983:3b96a8e22d53
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri Apr 18 15:19:02 2003 +0000

description:
fix a use of an uninitialized variable.

diffstat:

 sys/nfs/nfs_bio.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 631a1bfffad1 -r 3b96a8e22d53 sys/nfs/nfs_bio.c
--- a/sys/nfs/nfs_bio.c Fri Apr 18 15:15:12 2003 +0000
+++ b/sys/nfs/nfs_bio.c Fri Apr 18 15:19:02 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_bio.c,v 1.94 2003/04/15 13:48:40 yamt Exp $        */
+/*     $NetBSD: nfs_bio.c,v 1.95 2003/04/18 15:19:02 yamt Exp $        */
 
 /*
  * Copyright (c) 1989, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_bio.c,v 1.94 2003/04/15 13:48:40 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_bio.c,v 1.95 2003/04/18 15:19:02 yamt Exp $");
 
 #include "opt_nfs.h"
 #include "opt_ddb.h"
@@ -1031,6 +1031,8 @@
                                        nfs_add_committed_range(vp, off, cnt);
                                }
                        }
+               } else {
+                       error = 0;
                }
                lockmgr(&np->n_commitlock, LK_RELEASE, NULL);
                if (!error) {



Home | Main Index | Thread Index | Old Index