]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4622f09fddfd1f4b9a9e734cf4e18fbe36cb824
tree82d183895174d8e151f84cbf0e4f0d2436301f7d
parent3620faeef0ceeb29c24e97d30a894cb660057fbe
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