Commit b4d232e65fa274a715dae39f77191071324e602a

Authored by Al Viro
1 parent 8a03feab32

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

fs/hugetlbfs/inode.c
... ... @@ -954,7 +954,7 @@
954 954 FMODE_WRITE | FMODE_READ,
955 955 &hugetlbfs_file_operations);
956 956 if (!file)
957   - goto out_inode;
  957 + goto out_dentry; /* inode is already attached */
958 958  
959 959 return file;
960 960