projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc042fd
)
libnvdimm: fix phys_addr for nvdimm_clear_poison
author
Toshi Kani
<
[email protected]
>
Tue, 25 Apr 2017 21:16:51 +0000
(15:16 -0600)
committer
Dan Williams
<
[email protected]
>
Thu, 27 Apr 2017 20:51:18 +0000
(13:51 -0700)
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 <
[email protected]
>
Cc: Dave Jiang <
[email protected]
>
Cc: Vishal Verma <
[email protected]
>
Reviewed-by: Vishal Verma <
[email protected]
>
Signed-off-by: Dan Williams <
[email protected]
>
drivers/nvdimm/claim.c
patch
|
blob
|
history
diff --git
a/drivers/nvdimm/claim.c
b/drivers/nvdimm/claim.c
index b3323c0697f6239ebbfe757137cde8352fe3c480..2c19bc7fc056771e40718b185f43613fe0484621 100644
(file)
--- a/
drivers/nvdimm/claim.c
+++ b/
drivers/nvdimm/claim.c
@@
-246,7
+246,8
@@
static int nsio_rw_bytes(struct nd_namespace_common *ndns,
if (IS_ALIGNED(offset, 512) && IS_ALIGNED(size, 512)) {
long cleared;
- cleared = nvdimm_clear_poison(&ndns->dev, offset, size);
+ cleared = nvdimm_clear_poison(&ndns->dev,
+ nsio->res.start + offset, size);
if (cleared < size)
rc = -EIO;
if (cleared > 0 && cleared / 512) {