From: Greg Kroah-Hartman Date: Wed, 28 Nov 2007 18:46:22 +0000 (-0800) Subject: kobject: grab the kset reference in kobject_add, not kobject_init X-Git-Tag: v2.6.25-rc1~1243^2~91 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfb36fff45e3997b8044c81045fc4869ba5f281a;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed