Commit 945af7c3 authored by David Howells's avatar David Howells Committed by James Morris
Browse files

KEYS: security_cred_alloc_blank() should return int under all circumstances



Make security_cred_alloc_blank() return int, not void, when CONFIG_SECURITY=n.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 6c1488fd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2309,8 +2309,10 @@ static inline int security_task_create(unsigned long clone_flags)
	return 0;
}

static inline void security_cred_alloc_blank(struct cred *cred, gfp_t gfp)
{ }
static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp)
{
	return 0;
}

static inline void security_cred_free(struct cred *cred)
{ }