Commit 4a5d6ba1 authored by David Howells's avatar David Howells Committed by James Morris
Browse files

CRED: Allow put_cred() to cope with a NULL groups list

put_cred() will oops if given a NULL groups list, but that is now possible with
the existence of cred_alloc_blank(), as used in keyctl_session_to_parent().

Added in commit:

	commit ee18d64c

	Author: David Howells <>
	Date:   Wed Sep 2 09:14:21 2009 +0100
	KEYS: Add a keyctl to install a process's session keyring on its parent [try #6]

Reported-by: default avatarMarc Dionne <>
Signed-off-by: default avatarDavid Howells <>
Signed-off-by: default avatarJames Morris <>
parent 4e6d0bff
......@@ -147,7 +147,8 @@ static void put_cred_rcu(struct rcu_head *rcu)
if (cred->group_info)
kmem_cache_free(cred_jar, cred);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment