diff options
-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 702083638c16..a63ee939178b 100644 --- a/mm/tiny-shmem.c +++ b/mm/tiny-shmem.c | |||
@@ -89,6 +89,8 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags) | |||
89 | 89 | ||
90 | close_file: | 90 | close_file: |
91 | put_filp(file); | 91 | put_filp(file); |
92 | return ERR_PTR(error); | ||
93 | |||
92 | put_dentry: | 94 | put_dentry: |
93 | dput(dentry); | 95 | dput(dentry); |
94 | put_memory: | 96 | put_memory: |