kobject: should use kobject_put() in kset-example
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 13 Jun 2008 03:09:16 +0000 (11:09 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 22 Jul 2008 04:54:56 +0000 (21:54 -0700)
We should call kobject_put() instead of kfree() if kobject_init_and_add()
returns an error, shouldn't we? Don't set up a bad example ;)

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found