Message ID | 6469675.ETGqQKjL3G@devpool35 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | binfmt_elf: fix documented return value for load_elf_phdrs() | expand |
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 9fe3b51c116a..251298d25c8c 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -428,7 +428,7 @@ static int elf_read(struct file *file, void *buf, size_t len, loff_t pos) * * Loads ELF program headers from the binary file elf_file, which has the ELF * header pointed to by elf_ex, into a newly allocated array. The caller is - * responsible for freeing the allocated data. Returns an ERR_PTR upon failure. + * responsible for freeing the allocated data. Returns NULL upon failure. */ static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, struct file *elf_file)
This function has never returned anything but a plain NULL. Fixes: 6a8d38945cf4e6e819d6b550250615db763065a0 Signed-off-by: Rolf Eike Beer <eb@emlix.com> --- fs/binfmt_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)