author: Lakshmi Ramasubramanian <nramas@linux.microsoft.com> 2021-02-21 09:49:25 -0800
committer: Rob Herring <robh@kernel.org> 2021-03-08 12:06:29 -0700
commit: 0c605158be32104bb85cbd12fb575e6f1e17d3e7
parent: 3c985d31ad661a2cc0ad0a55105046fc56a7b1fd
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 6 deletions
diff --git a/security/integrity/ima/ima_kexec.c b/security/integrity/ima/ima_kexec.c
index e29bea3dd4cc..8b1a3d50c49c 100644
--- a/security/integrity/ima/ima_kexec.c
+++ b/security/integrity/ima/ima_kexec.c
@@ -123,12 +123,8 @@ void ima_add_kexec_buffer(struct kimage *image)
return;
}
- ret = arch_ima_add_kexec_buffer(image, kbuf.mem, kexec_segment_size);
- if (ret) {
- pr_err("Error passing over kexec measurement buffer.\n");
- return;
- }
-
+ image->ima_buffer_addr = kbuf.mem;
+ image->ima_buffer_size = kexec_segment_size;
image->ima_buffer = kexec_buffer;
pr_debug("kexec measurement buffer for the loaded kernel at 0x%lx.\n",