• Greg Kroah-Hartman's avatar
    Modules: fix memory leak of module names · d172f4ef
    Greg Kroah-Hartman authored
    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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    
    d172f4ef
params.c 17.9 KB