From 93b48ea70f516252484c5e909e6eeb80340b4071 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 22 Sep 2016 08:50:47 -0600 Subject: [PATCH] Fix a logic error introduced with last commit --- fs/mount/fs_mount.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/mount/fs_mount.c b/fs/mount/fs_mount.c index 48c4a36f08..957e58f9c8 100644 --- a/fs/mount/fs_mount.c +++ b/fs/mount/fs_mount.c @@ -294,7 +294,8 @@ int mount(FAR const char *source, FAR const char *target, { ferr("ERROR: target %s exists and is a special node\n", target); errcode = -ENOTDIR; - goto errout_with_inode; + inode_release(mountpt_inode); + goto errout_with_semaphore; } } else @@ -419,9 +420,6 @@ errout_with_mountpt: } #endif -#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS -errout_with_inode: -#endif inode_release(mountpt_inode); goto errout;