summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoryamt <yamt@NetBSD.org>2011-03-04 09:47:47 +0000
committeryamt <yamt@NetBSD.org>2011-03-04 09:47:47 +0000
commitdd01afbb192f92be75bec11e13c887ef9adbba62 (patch)
tree51b62c5ff4d8197367662344f4bf1717dd367ce6 /lib
parentb256cab2118badf2bbfe69df18bc20e7d9de4063 (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/libpuffs/callcontext.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpuffs/callcontext.c b/lib/libpuffs/callcontext.c
index 45dc34948d4..2eee2c748ff 100644
--- a/lib/libpuffs/callcontext.c
+++ b/lib/libpuffs/callcontext.c
@@ -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);