diff --git a/src/mm/zone.zig b/src/mm/zone.zig index 4ba2e9b..e41e132 100644 --- a/src/mm/zone.zig +++ b/src/mm/zone.zig @@ -319,7 +319,7 @@ pub const Zone = struct { self.magtype = null; for (&magtypes) |*mtype| { - if (chunk_size > mtype.minbuf) { + if (chunk_size > mtype.minbuf and chunk_size <= mtype.maxbuf) { self.magtype = mtype; break; }