diff options
Diffstat (limited to 'mm/tiny-shmem.c')
-rw-r--r-- | mm/tiny-shmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/tiny-shmem.c b/mm/tiny-shmem.c index f0f55875dd6a..ae532f501943 100644 --- a/mm/tiny-shmem.c +++ b/mm/tiny-shmem.c | |||
@@ -88,6 +88,8 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags) | |||
88 | 88 | ||
89 | close_file: | 89 | close_file: |
90 | put_filp(file); | 90 | put_filp(file); |
91 | return ERR_PTR(error); | ||
92 | |||
91 | put_dentry: | 93 | put_dentry: |
92 | dput(dentry); | 94 | dput(dentry); |
93 | put_memory: | 95 | put_memory: |