Module Name: src
Committed By: pooka
Date: Wed Oct 7 20:56:29 UTC 2009
Modified Files:
src/lib/libp2k: p2k.c
Log Message:
puffs might call getattr after we decided to recycle node. protect.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/lib/libp2k/p2k.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/libp2k/p2k.c
diff -u src/lib/libp2k/p2k.c:1.19 src/lib/libp2k/p2k.c:1.20
--- src/lib/libp2k/p2k.c:1.19 Wed Oct 7 20:55:25 2009
+++ src/lib/libp2k/p2k.c Wed Oct 7 20:56:29 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: p2k.c,v 1.19 2009/10/07 20:55:25 pooka Exp $ */
+/* $NetBSD: p2k.c,v 1.20 2009/10/07 20:56:29 pooka Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved.
@@ -740,6 +740,10 @@
struct vattr *va_x;
int rv;
+ /* "deadfs" */
+ if (!vp)
+ return 0;
+
if (needcompat()) {
va_x = rump_vattr_init();
} else {