Skip to content

Commit 282c0a4

Browse files
zhaojielemimizohar
authored andcommitted
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 <[email protected]> Signed-off-by: Mimi Zohar <[email protected]>
1 parent 41d75dd commit 282c0a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/integrity/iint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void integrity_inode_free(struct inode *inode)
160160

161161
static void init_once(void *foo)
162162
{
163-
struct integrity_iint_cache *iint = foo;
163+
struct integrity_iint_cache *iint = (struct integrity_iint_cache *) foo;
164164

165165
memset(iint, 0, sizeof(*iint));
166166
iint->ima_file_status = INTEGRITY_UNKNOWN;

0 commit comments

Comments
 (0)