1
0
Fork 0

fix/kernel: Fixed invalid IS_PAGE_ALIGNED check in paging api for amd64

This commit is contained in:
Kevin Alavik 2025-05-14 20:15:07 +02:00
parent fb7da2a7f9
commit 7096f34719
Signed by: cmpsb
GPG key ID: 10D1CC0526FDC6D7

View file

@ -44,7 +44,7 @@ static inline uint64_t *get_or_alloc_table(uint64_t *table, uint64_t index, uint
if (!(table[index] & VMM_PRESENT)) if (!(table[index] & VMM_PRESENT))
{ {
uint64_t *new_table = palloc(1, true); uint64_t *new_table = palloc(1, true);
if (!new_table || IS_PAGE_ALIGNED((uint64_t)new_table)) if (!new_table || !IS_PAGE_ALIGNED((uint64_t)new_table))
{ {
return NULL; return NULL;
} }