commit | 185000fc556372b7fb7f26516c325f212030dbd3 | [log] [tgz] |
---|---|---|
author | Li Zefan <lizf@cn.fujitsu.com> | Fri Jun 13 11:09:16 2008 +0800 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Mon Jul 21 21:54:56 2008 -0700 |
tree | 522e1a72bcf51c8160f48eb02e79c064ee7d7c9a | |
parent | a231934bdf086a4fefc0df06e669499125a9db6f [diff] |
kobject: should use kobject_put() in kset-example 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>