projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a03fea
)
[PATCH] double iput() on failure exit in hugetlb
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 23 Feb 2008 10:59:19 +0000
(
05:59
-0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 19 Mar 2008 10:55:01 +0000
(06:55 -0400)
once we'd done d_instantiate(), we should only do dput().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/hugetlbfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/hugetlbfs/inode.c
b/fs/hugetlbfs/inode.c
index eee9487ae47fb78a12ffd92a4adaa6e185fbe085..6846785fe9043b48279bc04c44328d0264e48197 100644
(file)
--- a/
fs/hugetlbfs/inode.c
+++ b/
fs/hugetlbfs/inode.c
@@
-954,7
+954,7
@@
struct file *hugetlb_file_setup(const char *name, size_t size)
FMODE_WRITE | FMODE_READ,
&hugetlbfs_file_operations);
if (!file)
- goto out_
inode;
+ goto out_
dentry; /* inode is already attached */
return file;