projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
430e285
)
[PATCH] double dput() on failure exit in tiny-shmem
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 23 Feb 2008 10:46:50 +0000
(
05:46
-0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 19 Mar 2008 10:54:36 +0000
(06:54 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/tiny-shmem.c
patch
|
blob
|
history
diff --git
a/mm/tiny-shmem.c
b/mm/tiny-shmem.c
index 702083638c16d9a4a6878048f999f58c889fdd92..a63ee939178b173e78dfc8983209384f6a89b88a 100644
(file)
--- 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: