projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge commit 'gcl/gcl-next'
[firefly-linux-kernel-4.4.55.git]
/
samples
/
kobject
/
kset-example.c
diff --git
a/samples/kobject/kset-example.c
b/samples/kobject/kset-example.c
index b0a1b4fe6584a026866233136d69d19bb3f9d468..7395c0bbae18426e119d47bb67e59da293228952 100644
(file)
--- a/
samples/kobject/kset-example.c
+++ b/
samples/kobject/kset-example.c
@@
-211,7
+211,7
@@
static struct foo_obj *create_foo_obj(const char *name)
*/
retval = kobject_init_and_add(&foo->kobj, &foo_ktype, NULL, "%s", name);
if (retval) {
- k
free(foo
);
+ k
object_put(&foo->kobj
);
return NULL;
}