1
0
Fork 0

[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>
wifi-calibration
Al Viro 2008-02-23 05:59:19 -05:00
parent 8a03feab32
commit b4d232e65f
1 changed files with 1 additions and 1 deletions

View File

@ -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;