]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - tools/testing/nvdimm/test/nfit.c
Merge branch 'for-4.9/libnvdimm' into libnvdimm-for-next
[mirror_ubuntu-zesty-kernel.git] / tools / testing / nvdimm / test / nfit.c
index 0e721c6fb1cfcb5d9a3c4d3f866c227bf44038e7..c9a6458cb63e7514494811305fe8f41c1d3e6622 100644 (file)
@@ -691,7 +691,8 @@ static int nfit_test0_alloc(struct nfit_test *t)
                        return -ENOMEM;
                sprintf(t->label[i], "label%d", i);
 
-               t->flush[i] = test_alloc(t, sizeof(u64) * NUM_HINTS,
+               t->flush[i] = test_alloc(t, max(PAGE_SIZE,
+                                       sizeof(u64) * NUM_HINTS),
                                &t->flush_dma[i]);
                if (!t->flush[i])
                        return -ENOMEM;