diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-05-05 08:38:43 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-05-05 08:38:43 +0200 |
commit | 736163671bcb163fc82600b46c83dfa89d532d95 (patch) | |
tree | 0639dc9d9fa180450b4e8fbda706eaae5f1876da /drivers/nvdimm/claim.c | |
parent | libnvdimm, pfn: fix 'npfns' vs section alignment (diff) | |
parent | brd: fix uninitialized use of brd->dax_dev (diff) | |
download | linux-736163671bcb163fc82600b46c83dfa89d532d95.tar.xz linux-736163671bcb163fc82600b46c83dfa89d532d95.zip |
Merge branch 'for-4.12/dax' into libnvdimm-for-next
Diffstat (limited to 'drivers/nvdimm/claim.c')
-rw-r--r-- | drivers/nvdimm/claim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvdimm/claim.c b/drivers/nvdimm/claim.c index 6945e35058bf..93d128da1c92 100644 --- a/drivers/nvdimm/claim.c +++ b/drivers/nvdimm/claim.c @@ -246,7 +246,7 @@ static int nsio_rw_bytes(struct nd_namespace_common *ndns, if (rw == READ) { if (unlikely(is_bad_pmem(&nsio->bb, sector, sz_align))) return -EIO; - return memcpy_from_pmem(buf, nsio->addr + offset, size); + return memcpy_mcsafe(buf, nsio->addr + offset, size); } if (unlikely(is_bad_pmem(&nsio->bb, sector, sz_align))) { |