X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/43866e378188c25dd1e2208016ab3cbeb086ae6c..55e303ae13a4cf49d70f2294092726f2fffb9ef2:/bsd/miscfs/union/union_vnops.c diff --git a/bsd/miscfs/union/union_vnops.c b/bsd/miscfs/union/union_vnops.c index e8a9f20a1..2d89cce55 100644 --- a/bsd/miscfs/union/union_vnops.c +++ b/bsd/miscfs/union/union_vnops.c @@ -154,10 +154,10 @@ union_lookup1(udvp, dvpp, vpp, cnp) */ while (dvp != udvp && (dvp->v_type == VDIR) && (mp = dvp->v_mountedhere)) { - - if (vfs_busy(mp, 0, 0, p)) - continue; - + if (vfs_busy(mp, LK_NOWAIT, 0, p)) { + vput(dvp); + return(ENOENT); + } error = VFS_ROOT(mp, &tdvp); vfs_unbusy(mp, p); if (error) {