]> git.baikalelectronics.ru Git - kernel.git/commit
x86/boot: Fix boot regression caused by bootparam sanitizing
authorJohn Hubbard <jhubbard@nvidia.com>
Wed, 21 Aug 2019 19:25:13 +0000 (12:25 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 21 Aug 2019 20:37:09 +0000 (22:37 +0200)
commit38eb98e51908afdcfba22aa44f3170de8498054b
tree69fb381a81aaa2366c73bea181153695f84135e5
parentc22bde92639f80e54eca819bf181b0daf60fa600
x86/boot: Fix boot regression caused by bootparam sanitizing

commit b30b6ebc5ec4 ("x86/boot: Save fields explicitly, zero out everything
else") had two errors:

    * It preserved boot_params.acpi_rsdp_addr, and
    * It failed to preserve boot_params.hdr

Therefore, zero out acpi_rsdp_addr, and preserve hdr.

Fixes: b30b6ebc5ec4 ("x86/boot: Save fields explicitly, zero out everything else")
Reported-by: Neil MacLeod <neil@nmacleod.com>
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Neil MacLeod <neil@nmacleod.com>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20190821192513.20126-1-jhubbard@nvidia.com
arch/x86/include/asm/bootparam_utils.h