diff options
| author | 2007-12-23 13:06:49 -0800 | |
|---|---|---|
| committer | 2007-12-23 13:06:49 -0800 | |
| commit | 5356f664e1d2149b67d2aeed644cc1def128a4ac (patch) | |
| tree | 8af6289553a71b193082657d508998f828020c95 /kernel | |
| parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 (diff) | |
| parent | Modules: fix memory leak of module names (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6:
Modules: fix memory leak of module names
UIO: Add a MAINTAINERS entry for Userspace I/O
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/params.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/params.c b/kernel/params.c index 2a4c51487e72..7686417ee00e 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -697,8 +697,18 @@ static struct kset_uevent_ops module_uevent_ops = { decl_subsys(module, &module_ktype, &module_uevent_ops); int module_sysfs_initialized; +static void module_release(struct kobject *kobj) +{ + /* + * Stupid empty release function to allow the memory for the kobject to + * be properly cleaned up. This will not need to be present for 2.6.25 + * with the upcoming kobject core rework. + */ +} + static struct kobj_type module_ktype = { .sysfs_ops = &module_sysfs_ops, + .release = module_release, }; /* |
