Skip to content

Commit 0350e89

Browse files
committed
Deduct offset from MMIO automatic size allocation
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
1 parent 879635c commit 0350e89

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/mmio.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ ocxl_err ocxl_mmio_map_advanced(ocxl_afu_h afu, ocxl_mmio_type type, size_t size
271271
size = afu->global_mmio.length;
272272
break;
273273
}
274+
275+
size -= offset;
274276
}
275277

276278
switch (type) {

0 commit comments

Comments
 (0)