]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] EDAC: kobject_init/kobject_put fixes
authorDave Peterson <dsp@llnl.gov>
Sun, 26 Mar 2006 09:38:48 +0000 (01:38 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:57:07 +0000 (08:57 -0800)
commit6e5a8748507dea83386d1d76c58aeaed1ff5a1ec
tree90ce1bc0ed71a608f9af4c3db655a35d03173aac
parent028a7b6d3d9fa2cc41d76d45575345cca8d00a4c
[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>
drivers/edac/edac_mc.c