author: Richard Weinberger <richard@nod.at> 2015-02-27 22:56:28 +0100
committer: Richard Weinberger <richard@nod.at> 2015-03-26 23:27:48 +0100
commit: af9556586a906106453ff7df8bcacf795b2b7d0a
parent: 69886e676e89534953b12df77382504a7731f7bb
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index 104d58d2c78c..112ba5aa0848 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -329,6 +329,7 @@ retry:
/* somebody else had handled it first? */
if ((mode & HOSTFS_I(ino)->mode) == mode) {
mutex_unlock(&HOSTFS_I(ino)->open_mutex);
+ close_file(&fd);
return 0;
}
if ((mode | HOSTFS_I(ino)->mode) != mode) {