summaryrefslogtreecommitdiffstats
path: root/mm/tiny-shmem.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-02-23 11:46:50 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2008-03-19 11:54:36 +0100
commit8a03feab32dceb78b9b1edf220e833d36d416b00 (patch)
tree6aff7bc4c5b790f13507417f73ef097ea9c79054 /mm/tiny-shmem.c
parent[PATCH] fix up new filp allocators (diff)
downloadlinux-8a03feab32dceb78b9b1edf220e833d36d416b00.tar.xz
linux-8a03feab32dceb78b9b1edf220e833d36d416b00.zip
[PATCH] double dput() on failure exit in tiny-shmem
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm/tiny-shmem.c')
-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 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)
close_file:
put_filp(file);
+ return ERR_PTR(error);
+
put_dentry:
dput(dentry);
put_memory: