summaryrefslogtreecommitdiff
path: root/drivers/nvdimm
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2018-05-02 23:41:02 +0300
committerDan Williams <dan.j.williams@intel.com>2018-05-23 09:18:31 +0300
commit6dfdb2b6d877d654c8c7b59d7166f4d672fba4e8 (patch)
treea9bb0e828b84e3d8f065a46828376041b2ae2901 /drivers/nvdimm
parenta77d478642f12ade58fdfac335ae464df1944a1e (diff)
downloadlinux-6dfdb2b6d877d654c8c7b59d7166f4d672fba4e8.tar.xz
pmem: Switch to copy_to_iter_mcsafe()
Use the machine check safe version of copy_to_iter() for the ->copy_to_iter() operation published by the pmem driver. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm')
-rw-r--r--drivers/nvdimm/pmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c
index 1b8ab48365de..6d3da8c92868 100644
--- a/drivers/nvdimm/pmem.c
+++ b/drivers/nvdimm/pmem.c
@@ -267,7 +267,7 @@ static size_t pmem_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff,
static size_t pmem_copy_to_iter(struct dax_device *dax_dev, pgoff_t pgoff,
void *addr, size_t bytes, struct iov_iter *i)
{
- return copy_to_iter(addr, bytes, i);
+ return copy_to_iter_mcsafe(addr, bytes, i);
}
static const struct dax_operations pmem_dax_ops = {