Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75822
b: refs/heads/master
c: cf15126
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent ddfd1b7 commit 4d05365
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: e43b9192c59402685bd1f809068dd13aa5931570
refs/heads/master: cf15126b3d4511e06e5299781ab74922590900be
9 changes: 4 additions & 5 deletions trunk/kernel/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,12 @@ static int uids_user_create(struct user_struct *up)
int error;

memset(kobj, 0, sizeof(struct kobject));
kobj->ktype = &uids_ktype;
kobj->kset = uids_kset;
kobject_init(kobj);
kobject_set_name(&up->kobj, "%d", up->uid);
error = kobject_add(kobj);
if (error)
error = kobject_init_and_add(kobj, &uids_ktype, NULL, "%d", up->uid);
if (error) {
kobject_put(kobj);
goto done;
}

kobject_uevent(kobj, KOBJ_ADD);
done:
Expand Down

0 comments on commit 4d05365

Please sign in to comment.