aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2008-06-13 11:09:16 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2008-07-21 21:54:56 -0700
commit185000fc556372b7fb7f26516c325f212030dbd3 (patch)
tree522e1a72bcf51c8160f48eb02e79c064ee7d7c9a /include/linux/kernel.h
parentkobject: reorder kobject to save space on 64 bit builds (diff)
downloadwireguard-linux-185000fc556372b7fb7f26516c325f212030dbd3.tar.xz
wireguard-linux-185000fc556372b7fb7f26516c325f212030dbd3.zip
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>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions