diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-16 16:55:13 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-16 16:55:13 -0800 |
commit | 1ed10aa8e9e55e7f7b3374e532f453c4d0f5fe8a (patch) | |
tree | eb389f2e28d94aa7d2513ad795249caac8fa45e9 /drivers | |
parent | 5d677670477f92006406d9d77cb42391fad17fcd (diff) | |
parent | 18d19c96457d172d913510c083bc7411ed40cb10 (diff) | |
download | linux-1ed10aa8e9e55e7f7b3374e532f453c4d0f5fe8a.tar.bz2 |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
class: Free the class private data in class_release
sysfs: sysfs_sd_setattr set iattrs unconditionally
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/class.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c index 161746deab4b..6e2c3b064f53 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c @@ -59,6 +59,8 @@ static void class_release(struct kobject *kobj) else pr_debug("class '%s' does not have a release() function, " "be careful\n", class->name); + + kfree(cp); } static struct sysfs_ops class_sysfs_ops = { |