Skip to content

Commit 0e3b674

Browse files
committed
mm/pmm: Fix pointer being checked instead of value in align_entry()
1 parent f688951 commit 0e3b674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/mm/pmm.s2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static bool align_entry(uint64_t *base, uint64_t *length) {
111111
*length -= (*base - orig_base);
112112
*length = ALIGN_DOWN(*length, PAGE_SIZE);
113113

114-
if (!length)
114+
if (*length == 0)
115115
return false;
116116

117117
return true;

0 commit comments

Comments
 (0)