summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mm/tiny-shmem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/tiny-shmem.c b/mm/tiny-shmem.c
index 702083638c1..a63ee939178 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)
close_file:
put_filp(file);
+ return ERR_PTR(error);
+
put_dentry:
dput(dentry);
put_memory: