diff options
-rw-r--r-- | usr/src/uts/common/fs/dev/sdev_profile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/dev/sdev_profile.c b/usr/src/uts/common/fs/dev/sdev_profile.c index 5943ecab9f..2942468454 100644 --- a/usr/src/uts/common/fs/dev/sdev_profile.c +++ b/usr/src/uts/common/fs/dev/sdev_profile.c @@ -198,8 +198,8 @@ prof_make_dir(char *name, struct sdev_node **gdirp, struct sdev_node **dirp) if (newdv = sdev_cache_lookup(dir, name)) { *dirp = newdv; *gdirp = newdv->sdev_origin; - SDEV_RELE(dir); rw_exit(&dir->sdev_contents); + SDEV_RELE(dir); return (0); } rw_exit(&dir->sdev_contents); |