Skip to content

Commit

Permalink
pmem: Switch to copy_to_iter_mcsafe()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
djbw committed May 23, 2018
1 parent a77d478 commit 6dfdb2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvdimm/pmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 6dfdb2b

Please sign in to comment.