Source-Changes-HG archive

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

[src/trunk]: src/sys/nfs Remove the mount<->netexport entry from the map duri...



details:   https://anonhg.NetBSD.org/src/rev/96e49f26ce0b
branches:  trunk
changeset: 584545:96e49f26ce0b
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Fri Sep 23 19:39:15 2005 +0000

description:
Remove the mount<->netexport entry from the map during umount... otherwise
we leave a dangling pointer in the list *ouch*.

diffstat:

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

diffs (27 lines):

diff -r 005408e2dee7 -r 96e49f26ce0b sys/nfs/nfs_export.c
--- a/sys/nfs/nfs_export.c      Fri Sep 23 18:53:16 2005 +0000
+++ b/sys/nfs/nfs_export.c      Fri Sep 23 19:39:15 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_export.c,v 1.1 2005/09/23 12:10:33 jmmv Exp $      */
+/*     $NetBSD: nfs_export.c,v 1.2 2005/09/23 19:39:15 jmmv Exp $      */
 
 /*-
  * Copyright (c) 1997, 1998, 2004, 2005 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_export.c,v 1.1 2005/09/23 12:10:33 jmmv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_export.c,v 1.2 2005/09/23 19:39:15 jmmv Exp $");
 
 #include "opt_inet.h"
 
@@ -204,6 +204,8 @@
                if (mp->mnt_flag & MNT_EXPUBLIC)
                        setpublicfs(NULL, NULL, NULL);
 
+               CIRCLEQ_REMOVE(&mount_netexport_map, mnp, mnp_entries);
+
                free(mnp, M_NFS_EXPORT);
        }
 }



Home | Main Index | Thread Index | Old Index