[PATCH] memory leak in sysfs

From: Thomas Spatzier
Date: Wed Aug 27 2003 - 08:37:53 EST


Hello Patrick,

please verify the following patch. We found a memory leak in sysfs. Entries
in the dentry_cache allocated for objects in sysfs are not freed when the
objects in sysfs are deleted. This effect is due to inconsistent reference
counting in sysfs. Furthermore, when calling sysfs_remove_dir the deleted
directory was not removed from its parent's list of children. The attached
patch should fix the problems.

(See attached file: linux-2.6.0-test3-sysfs.patch)

Best regards,

Thomas

Attachment: linux-2.6.0-test3-sysfs.patch
Description: Binary data