Skip to content

Commit 35ffa94

Browse files
author
Tyler Hicks
committed
eCryptfs: Remove extra d_delete in ecryptfs_rmdir
vfs_rmdir() already calls d_delete() on the lower dentry. That was being duplicated in ecryptfs_rmdir() and caused a NULL pointer dereference when NFSv3 was the lower filesystem. Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
1 parent 5dd12af commit 35ffa94

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎fs/ecryptfs/inode.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,6 @@ static int ecryptfs_rmdir(struct inode *dir, struct dentry *dentry)
538538
dget(lower_dentry);
539539
rc = vfs_rmdir(lower_dir_dentry->d_inode, lower_dentry);
540540
dput(lower_dentry);
541-
if (!rc)
542-
d_delete(lower_dentry);
543541
fsstack_copy_attr_times(dir, lower_dir_dentry->d_inode);
544542
dir->i_nlink = lower_dir_dentry->d_inode->i_nlink;
545543
unlock_dir(lower_dir_dentry);

0 commit comments

Comments
 (0)