mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
[PATCH] double iput() on failure exit in hugetlb
once we'd done d_instantiate(), we should only do dput(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
8a03feab32
commit
b4d232e65f
@ -954,7 +954,7 @@ struct file *hugetlb_file_setup(const char *name, size_t size)
|
|||||||
FMODE_WRITE | FMODE_READ,
|
FMODE_WRITE | FMODE_READ,
|
||||||
&hugetlbfs_file_operations);
|
&hugetlbfs_file_operations);
|
||||||
if (!file)
|
if (!file)
|
||||||
goto out_inode;
|
goto out_dentry; /* inode is already attached */
|
||||||
|
|
||||||
return file;
|
return file;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user