diff options
Diffstat (limited to 'security/integrity/ima/ima_queue.c')
-rw-r--r-- | security/integrity/ima/ima_queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/integrity/ima/ima_queue.c b/security/integrity/ima/ima_queue.c index 91128b4b812a..552705d5a78d 100644 --- a/security/integrity/ima/ima_queue.c +++ b/security/integrity/ima/ima_queue.c | |||
@@ -117,7 +117,7 @@ int ima_add_template_entry(struct ima_template_entry *entry, int violation, | |||
117 | 117 | ||
118 | mutex_lock(&ima_extend_list_mutex); | 118 | mutex_lock(&ima_extend_list_mutex); |
119 | if (!violation) { | 119 | if (!violation) { |
120 | memcpy(digest, entry->digest, sizeof digest); | 120 | memcpy(digest, entry->digest, sizeof(digest)); |
121 | if (ima_lookup_digest_entry(digest)) { | 121 | if (ima_lookup_digest_entry(digest)) { |
122 | audit_cause = "hash_exists"; | 122 | audit_cause = "hash_exists"; |
123 | result = -EEXIST; | 123 | result = -EEXIST; |
@@ -133,7 +133,7 @@ int ima_add_template_entry(struct ima_template_entry *entry, int violation, | |||
133 | } | 133 | } |
134 | 134 | ||
135 | if (violation) /* invalidate pcr */ | 135 | if (violation) /* invalidate pcr */ |
136 | memset(digest, 0xff, sizeof digest); | 136 | memset(digest, 0xff, sizeof(digest)); |
137 | 137 | ||
138 | tpmresult = ima_pcr_extend(digest); | 138 | tpmresult = ima_pcr_extend(digest); |
139 | if (tpmresult != 0) { | 139 | if (tpmresult != 0) { |