Source-Changes-HG archive

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

[src/trunk]: src/sys/nfs In nfsrv_create(), kill an extra PNBUF_PUT() in the ...



details:   https://anonhg.NetBSD.org/src/rev/5635814b1d6e
branches:  trunk
changeset: 537098:5635814b1d6e
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Sep 26 20:41:25 2002 +0000

description:
In nfsrv_create(), kill an extra PNBUF_PUT() in the NFSv2 mknod case. The
pnbuf has already been freed by VOP_MKNOD. This should have been removed in
rev 1.60.
Should fix PR 18013, OK'd by fvdl.

diffstat:

 sys/nfs/nfs_serv.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 99a406d1a984 -r 5635814b1d6e sys/nfs/nfs_serv.c
--- a/sys/nfs/nfs_serv.c        Thu Sep 26 20:38:04 2002 +0000
+++ b/sys/nfs/nfs_serv.c        Thu Sep 26 20:41:25 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_serv.c,v 1.63 2002/09/26 20:38:04 bouyer Exp $     */
+/*     $NetBSD: nfs_serv.c,v 1.64 2002/09/26 20:41:25 bouyer Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_serv.c,v 1.63 2002/09/26 20:38:04 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_serv.c,v 1.64 2002/09/26 20:41:25 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1415,7 +1415,6 @@
                        if (error) {
                                nfsm_reply(0);
                        }
-                       PNBUF_PUT(nd.ni_cnd.cn_pnbuf);
                        if (nd.ni_cnd.cn_flags & ISSYMLINK) {
                                vrele(nd.ni_dvp);
                                vput(nd.ni_vp);



Home | Main Index | Thread Index | Old Index