diff options
-rw-r--r-- | fs/hostfs/hostfs_kern.c | 1 |
1 files changed, 1 insertions, 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: | |||
329 | /* somebody else had handled it first? */ | 329 | /* somebody else had handled it first? */ |
330 | if ((mode & HOSTFS_I(ino)->mode) == mode) { | 330 | if ((mode & HOSTFS_I(ino)->mode) == mode) { |
331 | mutex_unlock(&HOSTFS_I(ino)->open_mutex); | 331 | mutex_unlock(&HOSTFS_I(ino)->open_mutex); |
332 | close_file(&fd); | ||
332 | return 0; | 333 | return 0; |
333 | } | 334 | } |
334 | if ((mode | HOSTFS_I(ino)->mode) != mode) { | 335 | if ((mode | HOSTFS_I(ino)->mode) != mode) { |