Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/nfs Pull up revision 1.133 (requested by martti in ...



details:   https://anonhg.NetBSD.org/src/rev/3e18e743b26d
branches:  netbsd-1-6
changeset: 530804:3e18e743b26d
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Oct 04 08:34:30 2003 +0000

description:
Pull up revision 1.133 (requested by martti in ticket #1506):
plug mbuf leak due to manual mbuf handling.  PR kern/13807.
(martti confirmed that it stabilizes the situation described in kren/13807)

diffstat:

 sys/nfs/nfs_vfsops.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r faa0288ff66a -r 3e18e743b26d sys/nfs/nfs_vfsops.c
--- a/sys/nfs/nfs_vfsops.c      Sat Oct 04 08:34:22 2003 +0000
+++ b/sys/nfs/nfs_vfsops.c      Sat Oct 04 08:34:30 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_vfsops.c,v 1.112.10.2 2002/07/29 15:00:57 lukem Exp $      */
+/*     $NetBSD: nfs_vfsops.c,v 1.112.10.3 2003/10/04 08:34:30 tron Exp $       */
 
 /*
  * Copyright (c) 1989, 1993, 1995
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_vfsops.c,v 1.112.10.2 2002/07/29 15:00:57 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_vfsops.c,v 1.112.10.3 2003/10/04 08:34:30 tron Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -171,8 +171,11 @@
        if (v3)
                nfsm_postop_attr(vp, retattr);
        if (error) {
-               if (mrep != NULL)
-                       m_free(mrep);
+               if (mrep != NULL) {
+                       if (mrep->m_next != NULL)
+                               printf("nfs_vfsops: nfs_statfs would loose buffers\n");
+                       m_freem(mrep);
+               }
                goto nfsmout;
        }
        nfsm_dissect(sfp, struct nfs_statfs *, NFSX_STATFS(v3));



Home | Main Index | Thread Index | Old Index