commit | cfb36fff45e3997b8044c81045fc4869ba5f281a | [log] [tgz] |
---|---|---|
author | Greg Kroah-Hartman <gregkh@suse.de> | Wed Nov 28 10:46:22 2007 -0800 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Thu Jan 24 20:40:25 2008 -0800 |
tree | 35a58ea81b5864bfd68b8de65c791cf92729b072 | |
parent | d76e15fb20eeb7632ef38876a884fe3508b2c01d [diff] |
kobject: grab the kset reference in kobject_add, not kobject_init kobject_init should not be grabing any references, but only initializing the object. This patch fixes this, and makes the lock hold-time shorter for when a kset is present in the kobject. The current kernel tree has been audited to verify that this change should be safe. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>