Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151240
b: refs/heads/master
c: d9cd8f3
h: refs/heads/master
v: v3
  • Loading branch information
Dave Young authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent fcce2d2 commit 06968f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59a3cd7f9da60ac4ba8ae5a4cddc48fe4a450129
refs/heads/master: d9cd8f37855b012757818f31390e8f84db251c89
7 changes: 6 additions & 1 deletion trunk/lib/kobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,11 +793,16 @@ static struct kset *kset_create(const char *name,
struct kobject *parent_kobj)
{
struct kset *kset;
int retval;

kset = kzalloc(sizeof(*kset), GFP_KERNEL);
if (!kset)
return NULL;
kobject_set_name(&kset->kobj, name);
retval = kobject_set_name(&kset->kobj, name);
if (retval) {
kfree(kset);
return NULL;
}
kset->uevent_ops = uevent_ops;
kset->kobj.parent = parent_kobj;

Expand Down

0 comments on commit 06968f4

Please sign in to comment.