ima: Pass NULL instead of 0 to ima_get_action() in ima_file_mprotect()
authorRoberto Sassu <roberto.sassu@huawei.com>
Tue, 8 Jun 2021 12:31:24 +0000 (14:31 +0200)
committerMimi Zohar <zohar@linux.ibm.com>
Tue, 8 Jun 2021 20:29:10 +0000 (16:29 -0400)
commit531bf6a88d9bd6c13d4fc3f05d2de799d627de3b
tree850dd329ea5b6d031d01920022679e3fd2a38f1f
parent8c559415f66a42721fcfdf321cb7a58df01a4c74
ima: Pass NULL instead of 0 to ima_get_action() in ima_file_mprotect()

This patch fixes the sparse warning:

sparse: warning: Using plain integer as NULL pointer

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_main.c