diff options
| author | Patrick Mochel <mochel@osdl.org> | 2003-03-02 21:43:37 -0600 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2003-03-02 21:43:37 -0600 |
| commit | 2201a8156bb22abb8e64f8aa34e4dcb4406b8e1d (patch) | |
| tree | 132b0d9ef2d04e17c2505be5e5e12af8062d30b5 /include/linux | |
| parent | ab6671e98f80025ed95da3bfcc214b6808717460 (diff) | |
sysfs: fix oops in directory removal.
If a file that doesn't exist was looked up in a directory, and that
directory is later removed, sysfs would reap the negative dentrys along
with the valid ones.
Fix is to manually remove the dentrys from the parent's list under the
dcache_lock, then check if they're valid with dget_locked().
This ensures all the dentrys are removed, valid and invalid, and we don't
reap anything we shouldn't.
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
