On Mon, Oct 11, 2010 at 11:29:22PM +0400, Vladislav Bolkhovitin wrote:
Sweet, you now have opened yourself up to public ridicule as per the
documentation in the kernel for how to use kobjects!
Nice job :)
Seriously, you CAN NOT DO THIS! If you embed a kobject in a different
structure, then you have to rely on the kobject to handle the reference
counting for that larger structure. To do ANYTHING else is a bug and
wrong.
Please read the kobject documentation and fix this code up before
submitting it again.
thanks,
greg k-h
--