sysfs: Don't leak secdata when a sysfs_dirent is freed.
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 4 Nov 2009 10:50:06 +0000 (02:50 -0800)
committerJames Morris <jmorris@namei.org>
Wed, 4 Nov 2009 21:19:18 +0000 (08:19 +1100)
commit4c3da2209b1261af9a948b7509a38904c8eee554
tree74e2f113f8a40885b0df4858a3ba19f4747086a1
parent91d3f9bacdb4950d2f79fe2ba296aa249f60d06c
sysfs: Don't leak secdata when a sysfs_dirent is freed.

While refreshing my sysfs patches I noticed a leak in the secdata
implementation.  We don't free the secdata when we free the
sysfs dirent.

This is a bug in 2.6.32-rc5 that we really should close.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
fs/sysfs/dir.c