lkml.org 
[lkml]   [2009]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [BUG] git 2.6.31-rc3'ish: "<kobject> does not have a release() function, it is broken and must be fixed."
Date

> 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.



\
 
 \ /
  Last update: 2009-08-07 01:49    [W:0.057 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site