]> Git Repo - linux.git/commitdiff
kexec_lock: Replace kexec_mutex() by kexec_lock() in two comments
authorWenyu Liu <[email protected]>
Mon, 7 Aug 2023 02:52:06 +0000 (10:52 +0800)
committerMimi Zohar <[email protected]>
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 <[email protected]>
Acked-by: Baoquan He <[email protected]>
Acked-by: Paul Menzel <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
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)
 {
This page took 0.063206 seconds and 4 git commands to generate.