mnt_data is a pointer, set it to NULL not 0 when we're finished with it.
This commit is contained in:
parent
03a48736d2
commit
2fd5130380
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ptyfs_vfsops.c,v 1.34 2008/05/13 05:36:43 simonb Exp $ */
|
||||
/* $NetBSD: ptyfs_vfsops.c,v 1.35 2008/05/13 08:31:12 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993, 1995
|
||||
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ptyfs_vfsops.c,v 1.34 2008/05/13 05:36:43 simonb Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ptyfs_vfsops.c,v 1.35 2008/05/13 08:31:12 simonb Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -295,7 +295,7 @@ ptyfs_unmount(struct mount *mp, int mntflags)
|
|||
* Finally, throw away the ptyfsmount structure
|
||||
*/
|
||||
free(mp->mnt_data, M_PTYFSMNT);
|
||||
mp->mnt_data = 0;
|
||||
mp->mnt_data = NULL;
|
||||
ptyfs_count--;
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: union_vfsops.c,v 1.54 2008/05/10 02:26:09 rumble Exp $ */
|
||||
/* $NetBSD: union_vfsops.c,v 1.55 2008/05/13 08:31:13 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 The Regents of the University of California.
|
||||
|
@ -77,7 +77,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: union_vfsops.c,v 1.54 2008/05/10 02:26:09 rumble Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: union_vfsops.c,v 1.55 2008/05/13 08:31:13 simonb Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -369,7 +369,7 @@ union_unmount(struct mount *mp, int mntflags)
|
|||
* Finally, throw away the union_mount structure
|
||||
*/
|
||||
free(mp->mnt_data, M_UFSMNT); /* XXX */
|
||||
mp->mnt_data = 0;
|
||||
mp->mnt_data = NULL;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
@ -335,7 +335,7 @@ unionfs_unmount(struct mount *mp, int mntflags)
|
|||
return (error);
|
||||
|
||||
free(ump, M_UNIONFSMNT);
|
||||
mp->mnt_data = 0;
|
||||
mp->mnt_data = NULL;
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fdesc_vfsops.c,v 1.75 2008/05/10 02:26:09 rumble Exp $ */
|
||||
/* $NetBSD: fdesc_vfsops.c,v 1.76 2008/05/13 08:31:13 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993, 1995
|
||||
|
@ -41,7 +41,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: fdesc_vfsops.c,v 1.75 2008/05/10 02:26:09 rumble Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: fdesc_vfsops.c,v 1.76 2008/05/13 08:31:13 simonb Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -139,7 +139,7 @@ fdesc_unmount(struct mount *mp, int mntflags)
|
|||
* Finally, throw away the fdescmount structure
|
||||
*/
|
||||
free(mp->mnt_data, M_UFSMNT); /* XXX */
|
||||
mp->mnt_data = 0;
|
||||
mp->mnt_data = NULL;
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: overlay_vfsops.c,v 1.51 2008/05/10 02:26:09 rumble Exp $ */
|
||||
/* $NetBSD: overlay_vfsops.c,v 1.52 2008/05/13 08:31:13 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999, 2000 National Aeronautics & Space Administration
|
||||
|
@ -74,7 +74,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: overlay_vfsops.c,v 1.51 2008/05/10 02:26:09 rumble Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: overlay_vfsops.c,v 1.52 2008/05/13 08:31:13 simonb Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -235,7 +235,7 @@ ov_unmount(struct mount *mp, int mntflags)
|
|||
mutex_destroy(&omp->ovm_hashlock);
|
||||
hashdone(omp->ovm_node_hashtbl, HASH_LIST, omp->ovm_node_hash);
|
||||
free(omp, M_UFSMNT); /* XXX */
|
||||
mp->mnt_data = 0;
|
||||
mp->mnt_data = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: portal_vfsops.c,v 1.73 2008/05/10 02:26:10 rumble Exp $ */
|
||||
/* $NetBSD: portal_vfsops.c,v 1.74 2008/05/13 08:31:13 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993, 1995
|
||||
|
@ -40,7 +40,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: portal_vfsops.c,v 1.73 2008/05/10 02:26:10 rumble Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: portal_vfsops.c,v 1.74 2008/05/13 08:31:13 simonb Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -203,7 +203,7 @@ portal_unmount(struct mount *mp, int mntflags)
|
|||
* Finally, throw away the portalmount structure
|
||||
*/
|
||||
free(mp->mnt_data, M_UFSMNT); /* XXX */
|
||||
mp->mnt_data = 0;
|
||||
mp->mnt_data = NULL;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: procfs_vfsops.c,v 1.79 2008/05/10 02:26:10 rumble Exp $ */
|
||||
/* $NetBSD: procfs_vfsops.c,v 1.80 2008/05/13 08:31:13 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993
|
||||
|
@ -76,7 +76,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: procfs_vfsops.c,v 1.79 2008/05/10 02:26:10 rumble Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: procfs_vfsops.c,v 1.80 2008/05/13 08:31:13 simonb Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -188,7 +188,7 @@ procfs_unmount(struct mount *mp, int mntflags)
|
|||
exechook_disestablish(VFSTOPROC(mp)->pmnt_exechook);
|
||||
|
||||
free(mp->mnt_data, M_UFSMNT);
|
||||
mp->mnt_data = 0;
|
||||
mp->mnt_data = NULL;
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: umap_vfsops.c,v 1.78 2008/05/10 02:26:10 rumble Exp $ */
|
||||
/* $NetBSD: umap_vfsops.c,v 1.79 2008/05/13 08:31:13 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: umap_vfsops.c,v 1.78 2008/05/10 02:26:10 rumble Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: umap_vfsops.c,v 1.79 2008/05/13 08:31:13 simonb Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -270,7 +270,7 @@ umapfs_unmount(struct mount *mp, int mntflags)
|
|||
mutex_destroy(&->umapm_hashlock);
|
||||
hashdone(amp->umapm_node_hashtbl, HASH_LIST, amp->umapm_node_hash);
|
||||
free(amp, M_UFSMNT); /* XXX */
|
||||
mp->mnt_data = 0;
|
||||
mp->mnt_data = NULL;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue