summaryrefslogtreecommitdiff
path: root/include/linux/sysdev.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2004-12-02 20:40:55 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-02 20:40:55 -0800
commit2cbba4826722baf7b0c9fae1c01949885384feea (patch)
treebe3ab5a736f169ae998751218b0255cb8bbe9e77 /include/linux/sysdev.h
parentea2e10e57a47bc786f37f3737d35f0144ac06d45 (diff)
[PATCH] sysfs: fix sysfs_dir_close memory leak
sysfs_dir_close did not free the "cursor" sysfs_dirent used for keeping track of position in the list of sysfs_dirent nodes. Consequently, doing a "find /sys" would leak a sysfs_dirent for each of the 1140 directories in my /sys tree, or about 36kB each time. From: "Adam J. Richter" <adam@yggdrasil.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/sysdev.h')
0 files changed, 0 insertions, 0 deletions