Add two forgotten vfs_unbusy() calls, in vfs_mount() and vfs_nmount().

Reviewed by:	phk
This commit is contained in:
Maxime Henrion 2002-04-03 12:19:03 +00:00
parent 12c79eb288
commit bcc931752f
2 changed files with 4 additions and 0 deletions

@ -550,6 +550,7 @@ update:
if (mp->mnt_op->vfs_mount != NULL) {
printf("%s doesn't support the new mount syscall\n",
mp->mnt_vfc->vfc_name);
vfs_unbusy(mp, td);
vput(vp);
error = EOPNOTSUPP;
goto bad;
@ -888,6 +889,7 @@ update:
if (mp->mnt_op->vfs_mount == NULL) {
printf("%s doesn't support the old mount syscall\n",
mp->mnt_vfc->vfc_name);
vfs_unbusy(mp, td);
vput(vp);
return (EOPNOTSUPP);
}

@ -550,6 +550,7 @@ update:
if (mp->mnt_op->vfs_mount != NULL) {
printf("%s doesn't support the new mount syscall\n",
mp->mnt_vfc->vfc_name);
vfs_unbusy(mp, td);
vput(vp);
error = EOPNOTSUPP;
goto bad;
@ -888,6 +889,7 @@ update:
if (mp->mnt_op->vfs_mount == NULL) {
printf("%s doesn't support the old mount syscall\n",
mp->mnt_vfc->vfc_name);
vfs_unbusy(mp, td);
vput(vp);
return (EOPNOTSUPP);
}