diff options
| author | Petr Mladek <pmladek@suse.com> | 2023-04-24 16:49:08 +0200 | 
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2023-04-24 16:49:08 +0200 | 
| commit | c9c8133080c75ce2440001d765dbe8c24f932ea2 (patch) | |
| tree | 06191dcb03e8c2759ae373cca0b8eae51f21fbc0 /kernel/module/livepatch.c | |
| parent | 1b47b80e2fa777b37a9486512f4636d7e6aaa353 (diff) | |
| parent | 6486a57f05d3d40aa8698908de16feebe52e9f13 (diff) | |
Merge branch 'for-6.4/doc' into for-linus
Diffstat (limited to 'kernel/module/livepatch.c')
| -rw-r--r-- | kernel/module/livepatch.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/module/livepatch.c b/kernel/module/livepatch.c index 486d4ff92719..a89f01e1d6b7 100644 --- a/kernel/module/livepatch.c +++ b/kernel/module/livepatch.c @@ -11,7 +11,7 @@  #include "internal.h"  /* - * Persist Elf information about a module. Copy the Elf header, + * Persist ELF information about a module. Copy the ELF header,   * section header table, section string table, and symtab section   * index from info to mod->klp_info.   */ @@ -25,11 +25,11 @@ int copy_module_elf(struct module *mod, struct load_info *info)  	if (!mod->klp_info)  		return -ENOMEM; -	/* Elf header */ +	/* ELF header */  	size = sizeof(mod->klp_info->hdr);  	memcpy(&mod->klp_info->hdr, info->hdr, size); -	/* Elf section header table */ +	/* ELF section header table */  	size = sizeof(*info->sechdrs) * info->hdr->e_shnum;  	mod->klp_info->sechdrs = kmemdup(info->sechdrs, size, GFP_KERNEL);  	if (!mod->klp_info->sechdrs) { @@ -37,7 +37,7 @@ int copy_module_elf(struct module *mod, struct load_info *info)  		goto free_info;  	} -	/* Elf section name string table */ +	/* ELF section name string table */  	size = info->sechdrs[info->hdr->e_shstrndx].sh_size;  	mod->klp_info->secstrings = kmemdup(info->secstrings, size, GFP_KERNEL);  	if (!mod->klp_info->secstrings) { @@ -45,7 +45,7 @@ int copy_module_elf(struct module *mod, struct load_info *info)  		goto free_sechdrs;  	} -	/* Elf symbol section index */ +	/* ELF symbol section index */  	symndx = info->index.sym;  	mod->klp_info->symndx = symndx;  | 
