]> git.baikalelectronics.ru Git - kernel.git/commit
Modules: fix memory leak of module names
authorGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Dec 2007 05:18:25 +0000 (21:18 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Dec 2007 07:09:05 +0000 (23:09 -0800)
commit9c7808048860620859b95fe4e0810d73b76d6b1e
tree2c694919af4a14170a77b8c704151eb8a65851f0
parent20df5e4d703589098bc08de51380bf6923a04817
Modules: fix memory leak of module names

Due to the change in kobject name handling, the module kobject needs to
have a null release function to ensure that the name it previously set
will be properly cleaned up.

All of this wierdness goes away in 2.6.25 with the rework of the kobject
name and cleanup logic, but this is required for 2.6.24.

Thanks to Alexey Dobriyan for finding the problem, and to Kay Sievers
for pointing out the simple way to fix it after I tried many complex
ways.

Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/params.c