efi/x86: Use correct size for boot_params
authorArvind Sankar <nivedita@alum.mit.edu>
Thu, 30 Apr 2020 18:28:33 +0000 (14:28 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 1 May 2020 07:40:02 +0000 (09:40 +0200)
commit019512f1fd373632577ecd3e8d721e48b71fb36a
treea4042140edae0c84f0e9e0b162754c335573177c
parent4da0b2b7e67524cc206067865666899bc02e1cb0
efi/x86: Use correct size for boot_params

struct boot_params is only 4096 bytes, not 16384. Fix this by using
sizeof(struct boot_params) instead of hardcoding the incorrect value.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200430182843.2510180-2-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/x86-stub.c