Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7427d23 authored by Al Viro's avatar Al Viro
Browse files

autofs4: bogus dentry_unhash() added in ->unlink()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 3cebde24
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -583,8 +583,6 @@ static int autofs4_dir_unlink(struct inode *dir, struct dentry *dentry)
	if (!autofs4_oz_mode(sbi) && !capable(CAP_SYS_ADMIN))
		return -EACCES;

	dentry_unhash(dentry);

	if (atomic_dec_and_test(&ino->count)) {
		p_ino = autofs4_dentry_ino(dentry->d_parent);
		if (p_ino && dentry->d_parent != dentry)