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

Fix nasty off by one error.

parent 98fc9f60
......@@ -415,7 +415,7 @@ applydelta(struct ndz_rangemap *bmap, struct ndz_range *brange, void *arg)
#endif
/* base range */
if (baddr < daddr) {
if (daddr < beaddr) {
if (daddr <= beaddr) {
if (addmmrange(mmap, baddr, daddr-1, 1,
(uintptr_t)brange->data))
goto fail;
......
Markdown is supported
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