summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorJiele Zhao <unclexiaole@gmail.com>2021-04-07 01:44:38 +0000
committerMimi Zohar <zohar@linux.ibm.com>2021-04-09 12:17:52 -0400
commit282c0a4d15b6d44b4684e2a4e19785c9fbcc102f (patch)
treea4ef80dcd589420b2a5c65ef25ebc166353fc930 /security
parent41d75dd96205ef409f20556021f6e44860f2acce (diff)
integrity: Add declarations to init_once void arguments.
init_once is a callback to kmem_cache_create. The parameter type of this function is void *, so it's better to give a explicit cast here. Signed-off-by: Jiele Zhao <unclexiaole@gmail.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'security')
-rw-r--r--security/integrity/iint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/iint.c b/security/integrity/iint.c
index 0ba01847e836..fca8a9409e4a 100644
--- a/security/integrity/iint.c
+++ b/security/integrity/iint.c
@@ -160,7 +160,7 @@ void integrity_inode_free(struct inode *inode)
static void init_once(void *foo)
{
- struct integrity_iint_cache *iint = foo;
+ struct integrity_iint_cache *iint = (struct integrity_iint_cache *) foo;
memset(iint, 0, sizeof(*iint));
iint->ima_file_status = INTEGRITY_UNKNOWN;