diff mbox series

[1/3] security/security: remove extra address-of in hook.audit_rule_match call

Message ID 20210806070245.26338-2-dmastykin@astralinux.ru (mailing list archive)
State New, archived
Headers show
Series [1/3] security/security: remove extra address-of in hook.audit_rule_match call | expand

Commit Message

Dmitry Mastykin Aug. 6, 2021, 7:02 a.m. UTC
Wrong address was passed to audit_rule_match hooks instead of
rule's address.

Signed-off-by: Dmitry Mastykin <dmastykin@astralinux.ru>
---
 security/security.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/security/security.c b/security/security.c
index e33c8ccc06a0..fd14064e9106 100644
--- a/security/security.c
+++ b/security/security.c
@@ -2934,7 +2934,7 @@  int security_audit_rule_match(struct lsmblob *blob, u32 field, u32 op,
 			continue;
 		rc = hp->hook.audit_rule_match(blob->secid[hp->lsmid->slot],
 					       field, op,
-					       &lsmrule[hp->lsmid->slot]);
+					       lsmrule[hp->lsmid->slot]);
 		if (rc)
 			return rc;
 	}