Commit dd55c89852481a0708c3fd4b48f3081f4280d9d3

Authored by Tyler Hicks
1 parent 35ffa948b2

eCryptfs: dput dentries returned from dget_parent

Call dput on the dentries previously returned by dget_parent() in
ecryptfs_rename(). This is needed for supported eCryptfs mounts on top
of the NFSv3 client.

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>

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

... ... @@ -608,8 +608,8 @@
608 608 fsstack_copy_attr_all(old_dir, lower_old_dir_dentry->d_inode);
609 609 out_lock:
610 610 unlock_rename(lower_old_dir_dentry, lower_new_dir_dentry);
611   - dput(lower_new_dentry->d_parent);
612   - dput(lower_old_dentry->d_parent);
  611 + dput(lower_new_dir_dentry);
  612 + dput(lower_old_dir_dentry);
613 613 dput(lower_new_dentry);
614 614 dput(lower_old_dentry);
615 615 return rc;