diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-09-11 21:24:44 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-11 22:59:05 (GMT) |
commit | cb7b6b1cbc20a970c7124efae1c2478155604b54 (patch) | |
tree | ef0e867017f0a6fea23ebdcd87753174a4c75a25 /virt | |
parent | 92eaa565add62d56b90987f58ea9feafc5a7c183 (diff) | |
download | linux-fsl-qoriq-cb7b6b1cbc20a970c7124efae1c2478155604b54.tar.xz |
exec: cleanup the CONFIG_MODULES logic
search_binary_handler() uses "for (try=0; try<2; try++)" to avoid "goto"
but the code looks too complicated and horrible imho. We still need to
check "try == 0" before request_module() and add the additional "break"
for !CONFIG_MODULES case.
Kill this loop and use a simple "bool need_retry" + "goto retry". The
code looks much simpler and we do not even need ifdef's, gcc can optimize
out the "if (need_retry)" block if !IS_ENABLED().
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Cc: Zach Levis <zml@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions