summaryrefslogtreecommitdiff
path: root/net/nsh/nsh.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-05-28 19:20:25 +0300
committerKees Cook <keescook@chromium.org>2023-05-31 01:49:46 +0300
commit36650a357eac3e525edbd31db4fe45841b05dc3b (patch)
tree885ffa705849ade38e414bf37f186b409a5afdb8 /net/nsh/nsh.c
parente6302d5a285b41209ada308ced6f9562cf1c616f (diff)
downloadlinux-36650a357eac3e525edbd31db4fe45841b05dc3b.tar.xz
binfmt: Slightly simplify elf_fdpic_map_file()
There is no point in initializing 'load_addr' and 'seg' here, they are both re-written just before being used below. Doing so, 'load_addr' can be moved in the #ifdef CONFIG_MMU section. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/4f5e4096ad7f17716e924b5bd080e5709fc0b84b.1685290790.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions