]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
crash_dump: fix typo in function name read_key_from_user_keying
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 27 Feb 2026 23:04:21 +0000 (00:04 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 28 Mar 2026 04:19:35 +0000 (21:19 -0700)
The function read_key_from_user_keying() is missing an 'r' in its name.
Fix the typo by renaming it to read_key_from_user_keyring().

Link: https://lkml.kernel.org/r/20260227230422.859423-1-thorsten.blum@linux.dev
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Baoquan He <bhe@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/crash_dump_dm_crypt.c

index 5ce958d069dd3ea52dcc19d45994bf0f82e0fcd6..03fce24f1947e04e6f9fec2d563caa3206cc0a9b 100644 (file)
@@ -139,7 +139,7 @@ static int restore_dm_crypt_keys_to_thread_keyring(void)
        return 0;
 }
 
-static int read_key_from_user_keying(struct dm_crypt_key *dm_key)
+static int read_key_from_user_keyring(struct dm_crypt_key *dm_key)
 {
        const struct user_key_payload *ukp;
        struct key *key;
@@ -387,7 +387,7 @@ static int build_keys_header(void)
 
                strscpy(keys_header->keys[i].key_desc, key->description,
                        KEY_DESC_MAX_LEN);
-               r = read_key_from_user_keying(&keys_header->keys[i]);
+               r = read_key_from_user_keyring(&keys_header->keys[i]);
                if (r != 0) {
                        kexec_dprintk("Failed to read key %s\n",
                                      keys_header->keys[i].key_desc);