summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/fs/nullfs/null_vfsops.c1
-rw-r--r--sys/miscfs/nullfs/null_vfsops.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index 45f950e..20c3459 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -150,6 +150,7 @@ nullfs_mount(mp, path, data, ndp, p)
*/
if (lowerrootvp == VTONULL(mp->mnt_vnodecovered)->null_lowervp) {
NULLFSDEBUG("nullfs_mount: multi null mount?\n");
+ VOP_UNLOCK(lowerrootvp, 0, p);
return (EDEADLK);
}
diff --git a/sys/miscfs/nullfs/null_vfsops.c b/sys/miscfs/nullfs/null_vfsops.c
index 45f950e..20c3459 100644
--- a/sys/miscfs/nullfs/null_vfsops.c
+++ b/sys/miscfs/nullfs/null_vfsops.c
@@ -150,6 +150,7 @@ nullfs_mount(mp, path, data, ndp, p)
*/
if (lowerrootvp == VTONULL(mp->mnt_vnodecovered)->null_lowervp) {
NULLFSDEBUG("nullfs_mount: multi null mount?\n");
+ VOP_UNLOCK(lowerrootvp, 0, p);
return (EDEADLK);
}
OpenPOWER on IntegriCloud