puffs might call getattr after we decided to recycle node. protect.
This commit is contained in:
parent
0605ce2bd4
commit
a06931db70
|
@ -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 @@ p2k_node_getattr(struct puffs_usermount *pu, puffs_cookie_t opc,
|
|||
struct vattr *va_x;
|
||||
int rv;
|
||||
|
||||
/* "deadfs" */
|
||||
if (!vp)
|
||||
return 0;
|
||||
|
||||
if (needcompat()) {
|
||||
va_x = rump_vattr_init();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue