Skip to content

Commit 6dfdb2b

Browse files
committed
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 parent a77d478 commit 6dfdb2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/nvdimm/pmem.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static size_t pmem_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff,
267267
static size_t pmem_copy_to_iter(struct dax_device *dax_dev, pgoff_t pgoff,
268268
void *addr, size_t bytes, struct iov_iter *i)
269269
{
270-
return copy_to_iter(addr, bytes, i);
270+
return copy_to_iter_mcsafe(addr, bytes, i);
271271
}
272272

273273
static const struct dax_operations pmem_dax_ops = {

0 commit comments

Comments
 (0)