Commit 86f6b43c authored by Patrick Mochel's avatar Patrick Mochel

sysfs: Fix file removal

Turns out we do need to do d_delete() on individual files (and symlinks)
when removing them the tree, to make sure they actually get removed from
the hierarchy. 
parent 219ff908
......@@ -97,7 +97,7 @@ void sysfs_hash_and_remove(struct dentry * dir, const char * name)
atomic_read(&victim->d_count));
simple_unlink(dir->d_inode,victim);
d_delete(victim);
}
/*
* Drop reference from sysfs_get_dentry() above.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment