Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lmm/lmm_add_free.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ void lmm_add_free(lmm_t *lmm, void *block, oskit_size_t size)
Here we can assume no such thing. */
min = (min + ALIGN_MASK) & ~ALIGN_MASK;
max &= ~ALIGN_MASK;
assert(max >= min);

/* If after alignment we have nothing left, we're done. */
if (max == min)
if (max <= min)
return;

/* Add the block to the free list(s) of whatever region(s) it overlaps.
Expand Down