libnvdimm, pmem: fix size trim in pmem_direct_access()
authorDan Williams <dan.j.williams@intel.com>
Sun, 25 Oct 2015 02:55:58 +0000 (19:55 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 12 Nov 2015 17:55:23 +0000 (09:55 -0800)
commit589e75d15702dc720b363a92f984876704864946
tree82d183895174d8e151f84cbf0e4f0d2436301f7d
parentf7256dc0cdbc68903502997bde619f555a910f50
libnvdimm, pmem: fix size trim in pmem_direct_access()

This masking prevents access to the end of the device via dax_do_io(),
and is unnecessary as arch_add_memory() would have rejected an unaligned
allocation.

Cc: <stable@vger.kernel.org>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/pmem.c