diff options
author | Rolf Eike Beer <eb@emlix.com> | 2022-10-19 10:52:16 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-10-26 01:19:52 +0300 |
commit | ef20c5139c3157b5c6eda46f496952bddffe9ad6 (patch) | |
tree | 5e5db511c06280e4369980f55b2fc4c92336fd56 /fs/Kconfig.binfmt | |
parent | cfc46ca4fdcaef6f0215f56d89162400aee402e3 (diff) | |
download | linux-ef20c5139c3157b5c6eda46f496952bddffe9ad6.tar.xz |
binfmt_elf: simplify error handling in load_elf_phdrs()
The err variable was the same like retval, but capped to <= 0. This is the
same as retval as elf_read() never returns positive values.
Signed-off-by: Rolf Eike Beer <eb@emlix.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/4137126.7Qn9TF0dmF@mobilepool36.emlix.com
Diffstat (limited to 'fs/Kconfig.binfmt')
0 files changed, 0 insertions, 0 deletions