diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-11-02 08:47:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:18 -0500 |
commit | eb41d9465cdafee45e0cb30f3b7338646221908e (patch) | |
tree | a2e5d62c8b1bd48d5b20515b541096709fe184e0 /kernel/ksysfs.c | |
parent | 386f275f5d097758f867bc99ddeaeb7a03b6b190 (diff) |
fix struct user_info export's sysfs interaction
Clean up the use of ksets and kobjects. Kobjects are instances of
objects (like struct user_info), ksets are collections of objects of a
similar type (like the uids directory containing the user_info directories).
So, use kobjects for the user_info directories, and a kset for the "uids"
directory.
On object cleanup, the final kobject_put() was missing.
Cc: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Cc: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/ksysfs.c')
-rw-r--r-- | kernel/ksysfs.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/ksysfs.c b/kernel/ksysfs.c index dd0f9e7f3414..45e646585605 100644 --- a/kernel/ksysfs.c +++ b/kernel/ksysfs.c | |||
@@ -141,11 +141,8 @@ static int __init ksysfs_init(void) | |||
141 | goto group_exit; | 141 | goto group_exit; |
142 | } | 142 | } |
143 | 143 | ||
144 | /* | 144 | /* create the /sys/kernel/uids/ directory */ |
145 | * Create "/sys/kernel/uids" directory and corresponding root user's | 145 | error = uids_sysfs_init(); |
146 | * directory under it. | ||
147 | */ | ||
148 | error = uids_kobject_init(); | ||
149 | if (error) | 146 | if (error) |
150 | goto notes_exit; | 147 | goto notes_exit; |
151 | 148 | ||