Searched hist:"185000 fc" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/samples/kobject/ |
H A D | kset-example.c | 185000fc Thu Jun 12 22:09:16 CDT 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> 185000fc Thu Jun 12 22:09:16 CDT 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>
|