Commit 628478f9 authored by Mike Hibler's avatar Mike Hibler
Browse files

Fix nasty off by one error.

parent 98fc9f60
...@@ -415,7 +415,7 @@ applydelta(struct ndz_rangemap *bmap, struct ndz_range *brange, void *arg) ...@@ -415,7 +415,7 @@ applydelta(struct ndz_rangemap *bmap, struct ndz_range *brange, void *arg)
#endif #endif
/* base range */ /* base range */
if (baddr < daddr) { if (baddr < daddr) {
if (daddr < beaddr) { if (daddr <= beaddr) {
if (addmmrange(mmap, baddr, daddr-1, 1, if (addmmrange(mmap, baddr, daddr-1, 1,
(uintptr_t)brange->data)) (uintptr_t)brange->data))
goto fail; goto fail;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment