]> git.baikalelectronics.ru Git - kernel.git/commit
fix struct user_info export's sysfs interaction
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 2 Nov 2007 12:47:53 +0000 (13:47 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:18 +0000 (20:40 -0800)
commit4da8526fbe36f7fd29bae3b693383e14475fb57d
treea2e5d62c8b1bd48d5b20515b541096709fe184e0
parent1c10ed09b7805507d55cb12c0225be1672ba3ee7
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>
include/linux/sched.h
kernel/ksysfs.c
kernel/user.c