diff options
author | Dan Williams <dan.j.williams@intel.com> | 2018-05-02 22:41:02 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-05-23 08:18:31 +0200 |
commit | 6dfdb2b6d877d654c8c7b59d7166f4d672fba4e8 (patch) | |
tree | a9bb0e828b84e3d8f065a46828376041b2ae2901 /drivers/nvdimm/pmem.c | |
parent | dax: Report bytes remaining in dax_iomap_actor() (diff) | |
download | linux-6dfdb2b6d877d654c8c7b59d7166f4d672fba4e8.tar.xz linux-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>
Diffstat (limited to 'drivers/nvdimm/pmem.c')
-rw-r--r-- | drivers/nvdimm/pmem.c | 2 |
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 = { |