limine: Fix bug where HHDM would be randomised even with KASLR disabled
diff --git a/common/protos/limine.c b/common/protos/limine.c
index 8f1f9e14..51cb625f 100644
--- a/common/protos/limine.c
+++ b/common/protos/limine.c
@@ -169,7 +169,7 @@ bool limine_load(char *config, char *cmdline) {
return false;
}
- kaslr = is_reloc;
+ kaslr = kaslr && is_reloc;
// Load requests
if (elf64_load_section(kernel, &requests, ".limine_reqs", 0, slide) == 0) {
