author: Dan Williams <dan.j.williams@intel.com> 2020-10-13 16:50:34 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2020-10-13 18:38:28 -0700
commit: b7b3c01b191596d27a6980d1a42504f5b607f802
parent: a4574f63edc6f76fb46dcd65d3eb4d5a8e23ba38
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/lib/test_hmm.c b/lib/test_hmm.c
index e97ca8ec0bce..c710b4c5714d 100644
--- a/lib/test_hmm.c
+++ b/lib/test_hmm.c
@@ -472,6 +472,7 @@ static bool dmirror_allocate_chunk(struct dmirror_device *mdevice,
devmem->pagemap.type = MEMORY_DEVICE_PRIVATE;
devmem->pagemap.range.start = res->start;
devmem->pagemap.range.end = res->end;
+ devmem->pagemap.nr_range = 1;
devmem->pagemap.ops = &dmirror_devmem_ops;
devmem->pagemap.owner = mdevice;