X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/7b1edb791d9ca667b95988cb5638c4c88416cd17..fa4905b191e0d16b0fffd53bd565eca71d01fae0:/bsd/miscfs/specfs/spec_vnops.c?ds=sidebyside diff --git a/bsd/miscfs/specfs/spec_vnops.c b/bsd/miscfs/specfs/spec_vnops.c index 86dba1588..81b836085 100644 --- a/bsd/miscfs/specfs/spec_vnops.c +++ b/bsd/miscfs/specfs/spec_vnops.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2001 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -663,8 +663,8 @@ spec_close(ap) */ if (vcount(vp) == 2 && ap->a_p && vp == ap->a_p->p_session->s_ttyvp) { - vrele(vp); ap->a_p->p_session->s_ttyvp = NULL; + vrele(vp); } /* * If the vnode is locked, then we are in the midst