puffs__cc_destroy: clear PCC_HASCALLER. the caller info is not
necessarily relevant to the next life of the cc. this also fixes the failure of the assertion in the next line.
This commit is contained in:
parent
d87d6f14e7
commit
5c50d59d8b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: callcontext.c,v 1.24 2011/01/10 23:20:45 yamt Exp $ */
|
||||
/* $NetBSD: callcontext.c,v 1.25 2011/03/04 09:47:47 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, 2007, 2008 Antti Kantee. All Rights Reserved.
|
||||
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if !defined(lint)
|
||||
__RCSID("$NetBSD: callcontext.c,v 1.24 2011/01/10 23:20:45 yamt Exp $");
|
||||
__RCSID("$NetBSD: callcontext.c,v 1.25 2011/03/04 09:47:47 yamt Exp $");
|
||||
#endif /* !lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -291,6 +291,7 @@ puffs__cc_destroy(struct puffs_cc *pcc, int nonuke)
|
|||
{
|
||||
struct puffs_usermount *pu = pcc->pcc_pu;
|
||||
|
||||
pcc->pcc_flags &= ~PCC_HASCALLER;
|
||||
assert(pcc->pcc_flags == 0);
|
||||
assert(!puffs_fakecc);
|
||||
|
||||
|
|
Loading…
Reference in New Issue