linux/security
NeilBrown db1afffab0 kref: remove kref_set
Of the three uses of kref_set in the kernel:

 One really should be kref_put as the code is letting go of a
    reference,
 Two really should be kref_init because the kref is being
    initialised.

This suggests that making kref_set available encourages bad code.
So fix the three uses and remove kref_set completely.

Signed-off-by: NeilBrown <neilb@suse.de>
Acked-by: Mimi Zohar <zohar@us.ibm.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-05-21 09:37:29 -07:00
..
integrity/ima kref: remove kref_set 2010-05-21 09:37:29 -07:00
keys KEYS: Return more accurate error codes 2010-05-18 08:50:55 +10:00
selinux security/selinux/ss: Use kstrdup 2010-05-17 09:00:27 +10:00
smack Merge branch 'master' into next 2010-05-06 10:56:07 +10:00
tomoyo TOMOYO: Add pathname grouping support. 2010-05-17 09:25:57 +10:00
Kconfig
Makefile
capability.c LSM: Add __init to fixup function. 2010-05-17 09:27:20 +10:00
commoncap.c
device_cgroup.c Merge branch 'master' into next 2010-05-06 10:56:07 +10:00
inode.c
lsm_audit.c Merge branch 'master' into next 2010-05-06 10:56:07 +10:00
min_addr.c
security.c LSM: Add __init to fixup function. 2010-05-17 09:27:20 +10:00