projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c1488f
)
KEYS: security_cred_alloc_blank() should return int under all circumstances
author
David Howells
<dhowells@redhat.com>
Fri, 4 Sep 2009 08:19:48 +0000
(09:19 +0100)
committer
James Morris
<jmorris@namei.org>
Mon, 7 Sep 2009 01:39:10 +0000
(11:39 +1000)
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>
include/linux/security.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/security.h
b/include/linux/security.h
index 97de3fe3dd0d2c3d3c3b551838384ffc5d47a5e3..f4eb32d5b8907303e068edf82166bef17a7148f2 100644
(file)
--- a/
include/linux/security.h
+++ b/
include/linux/security.h
@@
-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)
{ }