diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 2abecfb5c3f1..c1be3bdbffa1 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -947,7 +947,10 @@ devfs_revoke(struct vop_revoke_args *ap) } dev_unlock(); if (vp2 != NULL) { + /* XXX */ + vhold(vp2); vgone(vp2); + vdrop(vp2); continue; } break;