Module Name:    src
Committed By:   jakllsch
Date:           Sat Jun 12 21:10:55 UTC 2010

Modified Files:
        src/sys/nfs: nfs_bio.c

Log Message:
Fix memory leak during some NFS writes.


To generate a diff of this commit:
cvs rdiff -u -r1.184 -r1.185 src/sys/nfs/nfs_bio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/nfs/nfs_bio.c
diff -u src/sys/nfs/nfs_bio.c:1.184 src/sys/nfs/nfs_bio.c:1.185
--- src/sys/nfs/nfs_bio.c:1.184	Fri Apr 23 15:38:47 2010
+++ src/sys/nfs/nfs_bio.c	Sat Jun 12 21:10:55 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: nfs_bio.c,v 1.184 2010/04/23 15:38:47 pooka Exp $	*/
+/*	$NetBSD: nfs_bio.c,v 1.185 2010/06/12 21:10:55 jakllsch Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_bio.c,v 1.184 2010/04/23 15:38:47 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_bio.c,v 1.185 2010/06/12 21:10:55 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_nfs.h"
@@ -1049,7 +1049,7 @@
 				pgs[i]->flags &= ~(PG_NEEDCOMMIT | PG_RDONLY);
 			}
 			mutex_exit(&uobj->vmobjlock);
-			return 0;
+			goto out;
 		} else if (error == NFSERR_STALEWRITEVERF) {
 			nfs_clearcommit(vp->v_mount);
 			goto again;

Reply via email to