[lkml]   [2008]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 3/4] modules: proper cleanup of kobject without CONFIG_SYSFS
    On Tuesday 20 May 2008 19:59:48 Denis V. Lunev wrote:
    > kobject: '<NULL>' (ffffffffa0104050): is not initialized, yet kobject_put()

    Thanks Denis.

    This patch masks a deeper problem; looks like you can't load any modules with

    int mod_sysfs_init(struct module *mod)
    int err;
    struct kobject *kobj;

    if (!module_sysfs_initialized) {
    printk(KERN_ERR "%s: module sysfs not initialized\n",
    err = -EINVAL;
    goto out;

    AFAICT, module_sysfs_initialized is not ever set if !CONFIG_SYSFS.

    I can't see the point of module_sysfs_initialized. It was introduced by Greg
    in commit 823bccfc ("remove "struct subsystem" as it is no longer needed").

    Greg, what were you trying to do here? Modules can't be loaded before
    param_sysfs_init(): are you trying to handle the case where the
    kset_create_and_add() fails?


     \ /
      Last update: 2008-05-22 11:31    [W:0.028 / U:16.888 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site