[PATCH 4.19 024/113] libnvdimm/pmem: fix a possible OOB access when read and write pmem