diff options
author | Dave Peterson <dsp@llnl.gov> | 2006-03-26 11:38:48 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 18:57:07 +0200 |
commit | 6e5a8748507dea83386d1d76c58aeaed1ff5a1ec (patch) | |
tree | 90ce1bc0ed71a608f9af4c3db655a35d03173aac /include/asm-powerpc/sections.h | |
parent | [PATCH] EDAC: edac_mc_add_mc fix [2/2] (diff) | |
download | linux-6e5a8748507dea83386d1d76c58aeaed1ff5a1ec.tar.xz linux-6e5a8748507dea83386d1d76c58aeaed1ff5a1ec.zip |
[PATCH] EDAC: kobject_init/kobject_put fixes
- Remove calls to kobject_init(). These are unnecessary because
kobject_register() calls kobject_init().
- Remove extra calls to kobject_put(). When we call
kobject_unregister(), this releases our reference to the kobject.
The extra calls to kobject_put() may cause the reference count to
drop to 0 while a kobject is still in use.
Signed-off-by: David S. Peterson <dsp@llnl.gov>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-powerpc/sections.h')
0 files changed, 0 insertions, 0 deletions