Skip to content
Commit 185000fc authored by Li Zefan's avatar Li Zefan Committed by Greg Kroah-Hartman
Browse files

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: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a231934b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment