Skip to content

Commit

Permalink
KEYS: security_cred_alloc_blank() should return int under all circums…
Browse files Browse the repository at this point in the history
…tances

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

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
  • Loading branch information
David Howells authored and James Morris committed Sep 7, 2009
1 parent 6c1488f commit 945af7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/linux/security.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{ }
Expand Down

0 comments on commit 945af7c

Please sign in to comment.