]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
kexec_lock: Replace kexec_mutex() by kexec_lock() in two comments
authorWenyu Liu <liuwenyu7@huawei.com>
Mon, 7 Aug 2023 02:52:06 +0000 (10:52 +0800)
committerMimi Zohar <zohar@linux.ibm.com>
Mon, 7 Aug 2023 13:55:42 +0000 (09:55 -0400)
kexec_mutex is replaced by an atomic variable
in 05c6257433b (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>
kernel/kexec_file.c
security/integrity/ima/ima_kexec.c

index 881ba0d1714ccf9cf49c22fbb238784f91596658..b5bbb2fe066855c3ba08dc85efc6ef4d07dd55ad 100644 (file)
@@ -624,7 +624,7 @@ int kexec_locate_mem_hole(struct kexec_buf *kbuf)
  * kexec_add_buffer - place a buffer in a kexec segment
  * @kbuf:      Buffer contents and memory parameters.
  *
- * This function assumes that kexec_mutex is held.
+ * This function assumes that kexec_lock is held.
  * On successful return, @kbuf->mem will have the physical address of
  * the buffer in memory.
  *
index 419dc405c8310b5d9486e0bfda8c15655e29ed28..ad133fe120db29776299452937056a64f262779f 100644 (file)
@@ -77,7 +77,7 @@ out:
  * Called during kexec_file_load so that IMA can add a segment to the kexec
  * image for the measurement list for the next kernel.
  *
- * This function assumes that kexec_mutex is held.
+ * This function assumes that kexec_lock is held.
  */
 void ima_add_kexec_buffer(struct kimage *image)
 {