]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kaslr: Remove bogus warning and unnecessary goto
authorArvind Sankar <nivedita@alum.mit.edu>
Mon, 27 Jul 2020 23:07:55 +0000 (19:07 -0400)
committerIngo Molnar <mingo@kernel.org>
Fri, 31 Jul 2020 09:08:07 +0000 (11:08 +0200)
commite4c552d513f859b3668ff292223ce96573443b28
treea6fbae71fe94346e3b62a08c797191eda3bbf678
parent391fb8da071d2f860f0abf291480cb201d872ed1
x86/kaslr: Remove bogus warning and unnecessary goto

Drop the warning on seeing "--" in handle_mem_options(). This will trigger
whenever one of the memory options is present in the command line
together with "--", but there's no problem if that is the case.

Replace goto with break.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20200727230801.3468620-3-nivedita@alum.mit.edu
arch/x86/boot/compressed/kaslr.c