Skip to content

Commit cfc46ca

Browse files
DerDakonkees
authored andcommitted
binfmt_elf: fix documented return value for load_elf_phdrs()
This function has never returned anything but a plain NULL. Fixes: 6a8d389 ("binfmt_elf: Hoist ELF program header loading to a function") Signed-off-by: Rolf Eike Beer <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent bfb4a2b commit cfc46ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/binfmt_elf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ static unsigned long maximum_alignment(struct elf_phdr *cmds, int nr)
456456
*
457457
* Loads ELF program headers from the binary file elf_file, which has the ELF
458458
* header pointed to by elf_ex, into a newly allocated array. The caller is
459-
* responsible for freeing the allocated data. Returns an ERR_PTR upon failure.
459+
* responsible for freeing the allocated data. Returns NULL upon failure.
460460
*/
461461
static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex,
462462
struct file *elf_file)

0 commit comments

Comments
 (0)