summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2003-01-09 23:37:04 -0600
committerPatrick Mochel <mochel@osdl.org>2003-01-09 23:37:04 -0600
commitb2aa16e83d30e24f5e7faea1aa532e3f6ebdec18 (patch)
treeb4b14663dfa1d1f97ec27c66f64fd38efe644fe9 /include/linux
parent00880cfff75b3b1fa44d8586d73fe2663644b0ba (diff)
sysfs: make sure we drop all the references on dentrys we acquire.
None of the file deletions were dropping the referencees to dentrys that were acquired via the internal helper get_dentry(). This adds the missing dput()s (and comments) to fix that. Also, this adds a dget() on the directory and each file that's being removed in sysfs_remove_dir(), (and associated dput()s) to guarantee the references stay valid over the duration. Originally reported by Mika Penttilä.
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions