mirror of
https://github.com/torvalds/linux.git
synced 2026-01-24 23:16:46 +00:00
kernel/kexec: change the prototype of kimage_map_segment()
The kexec segment index will be required to extract the corresponding
information for that segment in kimage_map_segment(). Additionally,
kexec_segment already holds the kexec relocation destination address and
size. Therefore, the prototype of kimage_map_segment() can be changed.
Link: https://lkml.kernel.org/r/20251216014852.8737-1-piliu@redhat.com
Fixes: 07d2490297 ("kexec: enable CMA based contiguous allocation")
Signed-off-by: Pingfan Liu <piliu@redhat.com>
Acked-by: Baoquan He <bhe@redhat.com>
Cc: Mimi Zohar <zohar@linux.ibm.com>
Cc: Roberto Sassu <roberto.sassu@huawei.com>
Cc: Alexander Graf <graf@amazon.com>
Cc: Steven Chen <chenste@linux.microsoft.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
8de524774b
commit
fe55ea8593
@@ -250,9 +250,7 @@ void ima_kexec_post_load(struct kimage *image)
|
||||
if (!image->ima_buffer_addr)
|
||||
return;
|
||||
|
||||
ima_kexec_buffer = kimage_map_segment(image,
|
||||
image->ima_buffer_addr,
|
||||
image->ima_buffer_size);
|
||||
ima_kexec_buffer = kimage_map_segment(image, image->ima_segment_index);
|
||||
if (!ima_kexec_buffer) {
|
||||
pr_err("Could not map measurements buffer.\n");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user