diff options
Diffstat (limited to 'fs/autofs4/root.c')
-rw-r--r-- | fs/autofs4/root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index f3c3e9e12..72b5e1b27 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c @@ -400,7 +400,7 @@ static int autofs4_dir_rmdir(struct inode *dir, struct dentry *dentry) spin_unlock(&dcache_lock); return -ENOTEMPTY; } - list_del(&dentry->d_hash); + list_del_init(&dentry->d_hash); spin_unlock(&dcache_lock); dput(ino->dentry); |