libnvdimm: fix phys_addr for nvdimm_clear_poison
authorToshi Kani <toshi.kani@hpe.com>
Tue, 25 Apr 2017 21:16:51 +0000 (15:16 -0600)
committerDan Williams <dan.j.williams@intel.com>
Thu, 27 Apr 2017 20:51:18 +0000 (13:51 -0700)
commit97681f9b086ac4009ed914fdc56b0ebbfafe8b3d
tree9c9ab9a9c1029035dd792ec2f536b32fa925202a
parentbc042fdfbb92b5b13421316b4548e2d6e98eed37
libnvdimm: fix phys_addr for nvdimm_clear_poison

nvdimm_clear_poison() expects a physical address, not an offset.
Fix nsio_rw_bytes() to call nvdimm_clear_poison() with a physical
address.

Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/claim.c