Skip to content
Merged
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
5 changes: 4 additions & 1 deletion mm/mm_gran/mm_grantable.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ bool gran_match(const gran_t *gran, size_t posi, size_t size, bool used,
uint32_t e; /* expected cell value */
gatr_t r; /* range helper */

gran_range(gran, posi, size, &r);
if (gran_range(gran, posi, size, &r) < 0)
{
memset(&r, 0, sizeof(r));
}

/* check the ending cell */

Expand Down