We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 309bba3 commit 020e1aeCopy full SHA for 020e1ae
drivers/nvdimm/virtio_pmem.c
@@ -81,6 +81,7 @@ static int virtio_pmem_probe(struct virtio_device *vdev)
81
ndr_desc.res = &res;
82
ndr_desc.numa_node = nid;
83
ndr_desc.flush = async_pmem_flush;
84
+ ndr_desc.provider_data = vdev;
85
set_bit(ND_REGION_PAGEMAP, &ndr_desc.flags);
86
set_bit(ND_REGION_ASYNC, &ndr_desc.flags);
87
nd_region = nvdimm_pmem_region_create(vpmem->nvdimm_bus, &ndr_desc);
@@ -89,7 +90,6 @@ static int virtio_pmem_probe(struct virtio_device *vdev)
89
90
err = -ENXIO;
91
goto out_nd;
92
}
- nd_region->provider_data = dev_to_virtio(nd_region->dev.parent->parent);
93
return 0;
94
out_nd:
95
nvdimm_bus_unregister(vpmem->nvdimm_bus);
0 commit comments