summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/uts/common/fs/portfs/port_fop.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/uts/common/fs/portfs/port_fop.c b/usr/src/uts/common/fs/portfs/port_fop.c
index 03a03dd2a6..1816956d10 100644
--- a/usr/src/uts/common/fs/portfs/port_fop.c
+++ b/usr/src/uts/common/fs/portfs/port_fop.c
@@ -579,7 +579,6 @@ port_fop_femuninstall(vnode_t *vp)
*/
(void) fem_uninstall(vp, (fem_t *)pvp->pvp_femp, vp);
pvp->pvp_femp = NULL;
- mutex_exit(&pvp->pvp_mutex);
/*
@@ -602,9 +601,8 @@ port_fop_femuninstall(vnode_t *vp)
} else {
mutex_exit(mtx);
}
- } else {
- mutex_exit(&pvp->pvp_mutex);
}
+ mutex_exit(&pvp->pvp_mutex);
return (ret);
}