Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69123
b: refs/heads/master
c: fb7dde3
h: refs/heads/master
i:
  69121: f40258a
  69119: a8e7981
v: v3
  • Loading branch information
Srivatsa Vaddagiri authored and Ingo Molnar committed Oct 15, 2007
1 parent 301e0a1 commit 9a8b62c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 178be793485d70d871a0fd46b29e9e3e7da636ad
refs/heads/master: fb7dde37ece82e13de383afd7042c45df67a9d17
4 changes: 4 additions & 0 deletions trunk/kernel/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ static int user_kobject_create(struct user_struct *up)
if (error)
kobject_del(kobj);

kobject_uevent(kobj, KOBJ_ADD);

done:
return error;
}
Expand All @@ -189,6 +191,7 @@ int __init uids_kobject_init(void)

/* create under /sys/kernel dir */
uids_kobject.parent = &kernel_subsys.kobj;
uids_kobject.kset = &kernel_subsys;
kobject_set_name(&uids_kobject, "uids");
kobject_init(&uids_kobject);

Expand Down Expand Up @@ -228,6 +231,7 @@ static void remove_user_sysfs_dir(struct work_struct *w)
goto done;

sysfs_remove_file(kobj, &up->user_attr.attr);
kobject_uevent(kobj, KOBJ_REMOVE);
kobject_del(kobj);

sched_destroy_user(up);
Expand Down

0 comments on commit 9a8b62c

Please sign in to comment.