Module Name:    src
Committed By:   yamt
Date:           Fri Mar  4 09:47:47 UTC 2011

Modified Files:
        src/lib/libpuffs: callcontext.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/lib/libpuffs/callcontext.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libpuffs/callcontext.c
diff -u src/lib/libpuffs/callcontext.c:1.24 src/lib/libpuffs/callcontext.c:1.25
--- src/lib/libpuffs/callcontext.c:1.24	Mon Jan 10 23:20:45 2011
+++ src/lib/libpuffs/callcontext.c	Fri Mar  4 09:47:47 2011
@@ -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 @@
 {
 	struct puffs_usermount *pu = pcc->pcc_pu;
 
+	pcc->pcc_flags &= ~PCC_HASCALLER;
 	assert(pcc->pcc_flags == 0);
 	assert(!puffs_fakecc);
 

Reply via email to