Messages in this thread | | | From | Roland Dreier <> | Subject | Re: [BUG] git 2.6.31-rc3'ish: "<kobject> does not have a release() function, it is broken and must be fixed." | Date | Thu, 06 Aug 2009 16:47:31 -0700 |
| |
> Kay, we were cleaning up the kobject name stuff then, and we thought > that this release function wasn't used anymore. But in looking at the > code, I can't see where the kobject is actually freed. What am I > missing?
the kobject in question is freed at
free_module() -> mod_kobject_remove() -> mod_sysfs_fini() -> kobject_put(&mod->mkobj.kobj);
(in kernel/module.c)
Of course the release function you removed in 7a6a4161 was empty so it wasn't doing anything except satisfying the "all kobjects must have a release method" diktat.
- R.
| |