efi/x86: Fix the missing KASLR_FLAG bit in boot_params->hdr.loadflags
[linux-2.6-microblaze.git] / drivers / firmware / efi / libstub / x86-stub.c
index da9b7b8..0d510c9 100644 (file)
@@ -787,6 +787,8 @@ static efi_status_t efi_decompress_kernel(unsigned long *kernel_entry)
                        efi_debug("AMI firmware v2.0 or older detected - disabling physical KASLR\n");
                        seed[0] = 0;
                }
+
+               boot_params_ptr->hdr.loadflags |= KASLR_FLAG;
        }
 
        status = efi_random_alloc(alloc_size, CONFIG_PHYSICAL_ALIGN, &addr,