1
0
Fork 0
alistair23-linux/security/keys
David Howells eca1bf5b4f KEYS: Fix variable uninitialisation warnings
Fix variable uninitialisation warnings introduced in:

	commit 8bbf4976b5
	Author: David Howells <dhowells@redhat.com>
	Date:   Fri Nov 14 10:39:14 2008 +1100

	KEYS: Alter use of key instantiation link-to-keyring argument

As:

  security/keys/keyctl.c: In function 'keyctl_negate_key':
  security/keys/keyctl.c:976: warning: 'dest_keyring' may be used uninitialized in this function
  security/keys/keyctl.c: In function 'keyctl_instantiate_key':
  security/keys/keyctl.c:898: warning: 'dest_keyring' may be used uninitialized in this function

Some versions of gcc notice that get_instantiation_key() doesn't always set
*_dest_keyring, but fail to observe that if this happens then *_dest_keyring
will not be read by the caller.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
2008-12-29 14:24:43 +11:00
..
Makefile keys: make the keyring quotas controllable through /proc/sys 2008-04-29 08:06:17 -07:00
compat.c keys: add keyctl function to get a security label 2008-04-29 08:06:16 -07:00
internal.h CRED: Inaugurate COW credentials 2008-11-14 10:39:23 +11:00
key.c CRED: Inaugurate COW credentials 2008-11-14 10:39:23 +11:00
keyctl.c KEYS: Fix variable uninitialisation warnings 2008-12-29 14:24:43 +11:00
keyring.c CRED: Inaugurate COW credentials 2008-11-14 10:39:23 +11:00
permission.c CRED: Inaugurate COW credentials 2008-11-14 10:39:23 +11:00
proc.c CRED: Inaugurate COW credentials 2008-11-14 10:39:23 +11:00
process_keys.c CRED: Make execve() take advantage of copy-on-write credentials 2008-11-14 10:39:24 +11:00
request_key.c CRED: Inaugurate COW credentials 2008-11-14 10:39:23 +11:00
request_key_auth.c CRED: Inaugurate COW credentials 2008-11-14 10:39:23 +11:00
sysctl.c keys: make the keyring quotas controllable through /proc/sys 2008-04-29 08:06:17 -07:00
user_defined.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00