提交 945af7c3 编写于 作者: D David Howells 提交者: James Morris

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: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NJames Morris <jmorris@namei.org>
上级 6c1488fd
......@@ -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)
{ }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册