Skip to content

Commit 8b64b20

Browse files
committed
Fix: treat kernel_slice_end as an exclusive bound when checking for overlaps
Fixes an error that occured when the exclusive kernel end address was equal to the start address of the next memory region. We erroneously considered these regions as overlapping.
1 parent c73786d commit 8b64b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/legacy_memory_region.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ where
160160
let kernel_slice_end = kernel_slice_start + kernel_slice_len;
161161
if region.kind == MemoryRegionKind::Usable
162162
&& kernel_slice_start < region.end
163-
&& kernel_slice_end >= region.start
163+
&& kernel_slice_end > region.start
164164
{
165165
// region overlaps with kernel -> we might need to split it
166166

0 commit comments

Comments
 (0)