Skip to content

Commit

Permalink
[PATCH] double iput() on failure exit in hugetlb
Browse files Browse the repository at this point in the history
once we'd done d_instantiate(), we should only do dput().

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Mar 19, 2008
1 parent 8a03fea commit b4d232e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/hugetlbfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b4d232e

Please sign in to comment.