Skip to content

Commit 55e2b69

Browse files
l30013671mimizohar
authored andcommitted
kexec_lock: Replace kexec_mutex() by kexec_lock() in two comments
kexec_mutex is replaced by an atomic variable in 05c6257 (panic, kexec: make __crash_kexec() NMI safe). But there are still two comments that referenced kexec_mutex, replace them by kexec_lock. Signed-off-by: Wenyu Liu <liuwenyu7@huawei.com> Acked-by: Baoquan He <bhe@redhat.com> Acked-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
1 parent 56dc986 commit 55e2b69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/kexec_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ int kexec_locate_mem_hole(struct kexec_buf *kbuf)
624624
* kexec_add_buffer - place a buffer in a kexec segment
625625
* @kbuf: Buffer contents and memory parameters.
626626
*
627-
* This function assumes that kexec_mutex is held.
627+
* This function assumes that kexec_lock is held.
628628
* On successful return, @kbuf->mem will have the physical address of
629629
* the buffer in memory.
630630
*

security/integrity/ima/ima_kexec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static int ima_dump_measurement_list(unsigned long *buffer_size, void **buffer,
7777
* Called during kexec_file_load so that IMA can add a segment to the kexec
7878
* image for the measurement list for the next kernel.
7979
*
80-
* This function assumes that kexec_mutex is held.
80+
* This function assumes that kexec_lock is held.
8181
*/
8282
void ima_add_kexec_buffer(struct kimage *image)
8383
{

0 commit comments

Comments
 (0)