Remove bogus KASSERT: we can't make any assumptions about a dirent's
node in unmount since it might have been freed already. fixes PR kern/37667. per discussion with ad & simonb.
This commit is contained in:
parent
c142350bc6
commit
661097a9a5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tmpfs_vfsops.c,v 1.34 2008/01/02 11:48:47 ad Exp $ */
|
||||
/* $NetBSD: tmpfs_vfsops.c,v 1.35 2008/01/17 18:22:52 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -49,7 +49,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tmpfs_vfsops.c,v 1.34 2008/01/02 11:48:47 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tmpfs_vfsops.c,v 1.35 2008/01/17 18:22:52 pooka Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -232,7 +232,6 @@ tmpfs_unmount(struct mount *mp, int mntflags)
|
|||
struct tmpfs_dirent *nde;
|
||||
|
||||
nde = TAILQ_NEXT(de, td_entries);
|
||||
KASSERT(de->td_node->tn_vnode == NULL);
|
||||
tmpfs_free_dirent(tmp, de, false);
|
||||
de = nde;
|
||||
node->tn_size -= sizeof(struct tmpfs_dirent);
|
||||
|
|
Loading…
Reference in New Issue