summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/devfs')
-rw-r--r--sys/fs/devfs/devfs_vnops.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index 6c3f8fb..80f2dba 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -280,7 +280,6 @@ devfs_allocv(struct devfs_dirent *de, struct mount *mp, struct vnode **vpp, stru
sx_xunlock(&dmp->dm_lock);
return (ENOENT);
}
- loop:
DEVFS_DE_HOLD(de);
DEVFS_DMP_HOLD(dmp);
mtx_lock(&devfs_de_interlock);
@@ -296,8 +295,10 @@ devfs_allocv(struct devfs_dirent *de, struct mount *mp, struct vnode **vpp, stru
vput(vp);
return (ENOENT);
}
- else if (error)
- goto loop;
+ else if (error) {
+ sx_xunlock(&dmp->dm_lock);
+ return (error);
+ }
sx_xunlock(&dmp->dm_lock);
*vpp = vp;
return (0);
OpenPOWER on IntegriCloud