Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/nvdimm/pmem.c
··· 267 267 static size_t pmem_copy_to_iter(struct dax_device *dax_dev, pgoff_t pgoff, 268 268 void *addr, size_t bytes, struct iov_iter *i) 269 269 { 270 - return copy_to_iter(addr, bytes, i); 270 + return copy_to_iter_mcsafe(addr, bytes, i); 271 271 } 272 272 273 273 static const struct dax_operations pmem_dax_ops = {