Skip to content
Commit ef20c513 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Kees Cook
Browse files

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: default avatarRolf Eike Beer <eb@emlix.com>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/4137126.7Qn9TF0dmF@mobilepool36.emlix.com
parent cfc46ca4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment