Home
last modified time | relevance | path

Searched hist:"185000 fc556372b7fb7f26516c325f212030dbd3" (Results 1 – 1 of 1) sorted by relevance

/linux/samples/kobject/
H A Dkset-example.cdiff 185000fc556372b7fb7f26516c325f212030dbd3 Fri Jun 13 05:09:16 CEST 2008 Li Zefan <lizf@cn.fujitsu.com> 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>