lkml.org 
[lkml]   [2004]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    Subject[PATCH REPOST 2.6.10-rc2 0/4] module sysfs: module sysfs related clean ups
     Hello, Greg.  Hello, Rusty.

    I forgot kfree(mk) in params.c:kernel_param_sysfs_setup() on failure
    path. You can just add kfree(mk) like the following.

    /* no need to keep the kobject if no parameter is exported */
    - if (!param_sysfs_setup(mk, kparam, num_params, name_skip))
    + if (!param_sysfs_setup(mk, kparam, num_params, name_skip)) {
    kobject_unregister(&mk->kobj);
    + kfree(mk);
    + }

    I also regenerated all patches. Sorry for the inconvenience.

    --
    tejun

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:08    [W:0.021 / U:0.472 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site