aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2018-05-02 13:41:02 -0700
committerDan Williams <dan.j.williams@intel.com>2018-05-22 23:18:31 -0700
commit6dfdb2b6d877d654c8c7b59d7166f4d672fba4e8 (patch)
treea9bb0e828b84e3d8f065a46828376041b2ae2901
parentdax: Report bytes remaining in dax_iomap_actor() (diff)
downloadlinux-dev-6dfdb2b6d877d654c8c7b59d7166f4d672fba4e8.tar.xz
linux-dev-6dfdb2b6d877d654c8c7b59d7166f4d672fba4e8.zip
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>
-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 = {