14 lines
636 B
Diff
14 lines
636 B
Diff
diff --git a/arch/x86/include/asm/bootparam_utils.h b/arch/x86/include/asm/bootparam_utils.h
|
|
index 5b5e9cb..ae93f72 100644
|
|
--- a/arch/x86/include/asm/bootparam_utils.h
|
|
+++ b/arch/x86/include/asm/bootparam_utils.h
|
|
@@ -20,7 +20,7 @@ static void sanitize_boot_params(struct boot_params *boot_params)
|
|
if (boot_params->sentinel) {
|
|
/*fields in boot_params are not valid, clear them */
|
|
memset(&boot_params->olpc_ofw_header, 0,
|
|
- (char *)&boot_params->alt_mem_k -
|
|
+ (char *)&boot_params->efi_info -
|
|
(char *)&boot_params->olpc_ofw_header);
|
|
memset(&boot_params->kbd_status, 0,
|
|
(char *)&boot_params->hdr -
|