• G
    [PATCH] fix module sysfs files reference counting · 03e88ae1
    Greg Kroah-Hartman 提交于
    The module files, refcnt, version, and srcversion did not properly
    increment the owner's module reference count, allowing the modules to
    be removed while the files were open, causing oopses.
    
    This patch fixes this, and also fixes the problem that the version and
    srcversion files were not showing up, unless CONFIG_MODULE_UNLOAD was
    enabled, which is not correct.
    
    Cc: Nathan Lynch <ntl@pobox.com>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    03e88ae1
module.h 15.5 KB