Skip to content

Commit

Permalink
integrity: Add declarations to init_once void arguments.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiele Zhao authored and Mimi Zohar committed Apr 9, 2021
1 parent 41d75dd commit 282c0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/integrity/iint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 282c0a4

Please sign in to comment.